diff --git a/plugins/view-resources/src/utils.ts b/plugins/view-resources/src/utils.ts index aa2e7a4330..1bf87df569 100644 --- a/plugins/view-resources/src/utils.ts +++ b/plugins/view-resources/src/utils.ts @@ -61,7 +61,7 @@ async function getAttributePresenter (client: Client, _class: Ref>, k } const presenter = await getResource(presenterMixin.presenter) return { - key: key, + key: typeof preserveKey === 'string' ? preserveKey : '', _class: attrClass, label: attribute.label, presenter