Skip to content

Commit be51c88

Browse files
authored
[Schema]: Error fetching fields (#3908)
## Root Cause: - The useGetContentModelFieldsQuery hook was called with a string argument instead of the required object { modelZUID: id }. ## Fix: - Updated the hook call to provide the correct query argument as an object. https://github.com/user-attachments/assets/f6e431c6-27fc-40fe-a7c3-7a71caa5d894
1 parent ed3d320 commit be51c88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/apps/schema/src/app/components/ModelsTable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ import {
2424
} from "../../../../../shell/components/Filters/DateFilter";
2525

2626
const FieldsCell = ({ ZUID }: any) => {
27-
const { data, isLoading } = useGetContentModelFieldsQuery(ZUID);
27+
const { data, isLoading } = useGetContentModelFieldsQuery({
28+
modelZUID: ZUID,
29+
});
2830
if (isLoading) {
2931
return (
3032
<Box display="flex" height="100%" alignItems="center">

0 commit comments

Comments
 (0)