Skip to content

Commit a6829e7

Browse files
committed
fix: bug
1 parent e86e105 commit a6829e7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/widgets/base/one2many/One2manyTree.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ export const One2manyTree = ({
154154
}, []);
155155

156156
const { loading, getColumnState, updateColumnState } =
157-
useTreeColumnStorageFetch(
158-
getKey({
157+
useTreeColumnStorageFetch({
158+
key: getKey({
159159
...dataForHash,
160160
model: relation,
161161
}),
162-
);
162+
});
163163

164164
if (loading) {
165165
return <Spin />;

src/widgets/base/one2many/useTreeColumnStorageFetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type TreeColumnStorageFetchProps = {
99

1010
export const useTreeColumnStorageFetch = ({
1111
key,
12-
treeViewFetching,
12+
treeViewFetching = false,
1313
}: TreeColumnStorageFetchProps) => {
1414
const [loading, setLoading] = useState(true);
1515
const columnState = useRef<ColumnState[] | undefined>(undefined);

src/widgets/views/SearchTreeInfinite.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function SearchTreeInfiniteComp(props: SearchTreeInfiniteProps, ref: any) {
210210
loading: getColumnStateInProgress,
211211
getColumnState,
212212
updateColumnState,
213-
} = useTreeColumnStorageFetch(columnStateKey);
213+
} = useTreeColumnStorageFetch({ key: columnStateKey });
214214

215215
const mergedParams = useMemo(
216216
() => mergeParams(searchParams || [], domain),

0 commit comments

Comments
 (0)