Skip to content

Commit

Permalink
Use localname instead of tagname for static UI
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmade committed Sep 23, 2024
1 parent 17cb6ac commit e991d19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/shared/clips/Clip/ClipStaticRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ function renderNode(node: Node, {key}: {key: any}) {
}

const element = node as Element;
const tagName = element.tagName;
const localName = element.localName;

const Component = LOADING_COMPONENT_MAP.get(tagName);
const Component = LOADING_COMPONENT_MAP.get(localName);

if (Component == null) {
throw new Error(`Unknown loading component: ${tagName}`);
throw new Error(`Unknown loading component: ${localName}`);
}

return (
Expand Down

0 comments on commit e991d19

Please sign in to comment.