use key instead of id

This commit is contained in:
Mads Rasmussen
2022-09-09 15:12:02 +02:00
parent 73a401a150
commit 9c151f83fd
3 changed files with 3 additions and 3 deletions

View File

@@ -14,5 +14,5 @@ export default {
} as Meta;
export const AAAOverview: Story<UmbEditorDataTypeElement> = () =>
html` <umb-editor-data-type id="${data[0].id}"></umb-editor-data-type>`;
html` <umb-editor-data-type id="${data[0].key}"></umb-editor-data-type>`;
AAAOverview.storyName = 'Overview';

View File

@@ -14,5 +14,5 @@ export default {
} as Meta;
export const AAAOverview: Story<UmbEditorDocumentTypeElement> = () =>
html` <umb-editor-document-type id="${data[0].id}"></umb-editor-document-type>`;
html` <umb-editor-document-type id="${data[0].key}"></umb-editor-document-type>`;
AAAOverview.storyName = 'Overview';

View File

@@ -16,5 +16,5 @@ export default {
const documentNodes = data.filter((node) => node.type === 'document');
export const AAAOverview: Story<UmbEditorDocumentElement> = () =>
html` <umb-editor-document id="${documentNodes[0].id}"></umb-editor-document>`;
html` <umb-editor-document id="${documentNodes[0].key}"></umb-editor-document>`;
AAAOverview.storyName = 'Overview';