Skip to content

Commit 3ea9993

Browse files
iobuhovgjulivan
authored andcommitted
fix: add missing flag
1 parent f81d74f commit 3ea9993

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

packages/pluggableWidgets/datagrid-dropdown-filter-web/src/hocs/withLinkedRefStore.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ import { RefFilterProps } from "../components/typings";
1313

1414
type WidgetProps = Pick<
1515
DatagridDropdownFilterContainerProps,
16-
"name" | "refEntity" | "refOptions" | "refCaption" | "refCaptionExp" | "refCaptionSource" | "refSearchAttr"
16+
| "name"
17+
| "refEntity"
18+
| "refOptions"
19+
| "refCaption"
20+
| "refCaptionExp"
21+
| "refCaptionSource"
22+
| "refSearchAttr"
23+
| "fetchOptionsLazy"
1724
>;
1825

1926
export interface RequiredProps {
@@ -22,6 +29,7 @@ export interface RequiredProps {
2229
refOptions: ListValue;
2330
refCaption: ListAttributeValue<string> | ListExpressionValue<string>;
2431
searchAttrId?: ListAttributeValue["id"];
32+
fetchOptionsLazy: boolean;
2533
}
2634

2735
type Component<P extends object> = (props: P) => React.ReactElement;
@@ -61,7 +69,8 @@ function mapProps(props: WidgetProps): RequiredProps {
6169
refEntity: props.refEntity,
6270
refOptions: props.refOptions,
6371
refCaption: props.refCaption,
64-
searchAttrId: props.refCaption.id
72+
searchAttrId: props.refCaption.id,
73+
fetchOptionsLazy: props.fetchOptionsLazy
6574
};
6675
} else {
6776
if (!props.refCaptionExp) {
@@ -72,7 +81,8 @@ function mapProps(props: WidgetProps): RequiredProps {
7281
refEntity: props.refEntity,
7382
refOptions: props.refOptions,
7483
refCaption: props.refCaptionExp,
75-
searchAttrId: props.refSearchAttr?.id
84+
searchAttrId: props.refSearchAttr?.id,
85+
fetchOptionsLazy: props.fetchOptionsLazy
7686
};
7787
}
7888
}

0 commit comments

Comments
 (0)