Skip to content

Commit 8e1cee9

Browse files
committed
fix: pass translated description to empty list component
1 parent 96854e1 commit 8e1cee9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/Extensibility/ExtensibilityList.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ export const ExtensibilityListCore = ({
123123
defaultSearch: true,
124124
});
125125

126-
const { description: subtitleText, url: emptyListUrl } =
127-
getResourceDescAndUrl(description);
126+
const { url: emptyListUrl } = getResourceDescAndUrl(description);
128127

129128
return (
130129
<ResourcesList
@@ -143,10 +142,7 @@ export const ExtensibilityListCore = ({
143142
textSearchProperties(defaultSearchProperties),
144143
}}
145144
emptyListProps={{
146-
subtitleText:
147-
subtitleText !== 'resource.description'
148-
? subtitleText
149-
: newListProps.description.props.i18nKey,
145+
subtitleText: newListProps?.description?.props?.i18nKey,
150146
url: emptyListUrl,
151147
}}
152148
/>

0 commit comments

Comments
 (0)