Skip to content

Commit

Permalink
fix refetch
Browse files Browse the repository at this point in the history
  • Loading branch information
pa-lem committed Sep 18, 2024
1 parent be6cd8e commit 5c05252
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function ObjectItems({
// Get all the needed columns (attributes + relationships)
const columns = getSchemaObjectColumns({ schema: schema, forListView: true });

const { loading, error, data = {} } = useObjectItems(schema, filters);
const { loading, error, data = {}, refetch } = useObjectItems(schema, filters);

const result = data && schema?.kind ? data[kindFilter?.value || schema?.kind] ?? {} : {};

Expand Down Expand Up @@ -184,6 +184,7 @@ export default function ObjectItems({
rowToDelete={rowToDelete}
open={!!deleteModal}
close={() => setDeleteModal(false)}
onDelete={refetch}
/>
</>
);
Expand Down

0 comments on commit 5c05252

Please sign in to comment.