Skip to content

Commit

Permalink
apply generateStoryUIdFromRawStoryUid()
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 20, 2024
1 parent 01b1d5c commit 5edc995
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ export abstract class AbstractRenderer {

const analyzedMetadata = new PropertyExtractor(storyFnAngular.moduleMetadata, component);

const storyUid = targetDOMNode.getAttribute(STORY_UID_ATTRIBUTE);
const storyUid = this.generateStoryUIdFromRawStoryUid(
targetDOMNode.getAttribute(STORY_UID_ATTRIBUTE)
);
const componentSelector = storyUid !== null ? `${targetSelector}[${storyUid}]` : targetSelector;
if (storyUid !== null) {
const element = targetDOMNode.querySelector(targetSelector);
Expand Down

0 comments on commit 5edc995

Please sign in to comment.