Skip to content

Commit 4be5749

Browse files
committed
fix: prevent widget failing on missing formatter
1 parent a6856ac commit 4be5749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/widget-plugin-dropdown-filter/src/stores/EnumFilterStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class EnumFilterStore extends BaseSelectStore {
5656
Array.from(attr.universe ?? [], value => {
5757
const stringValue = `${value}`;
5858
return {
59-
caption: attr.formatter.format(value),
59+
caption: attr.formatter ? attr.formatter.format(value) : stringValue,
6060
value: stringValue,
6161
selected: selected.has(stringValue)
6262
};

0 commit comments

Comments
 (0)