Skip to content

Commit

Permalink
Invalidate table version list query on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
solomonhawk committed Nov 14, 2024
1 parent eafab06 commit c47753f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/src/features/table/api/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export function usePublishTable({
tableIdentifier: data.tableIdentifier,
});

trpcUtils.tableVersion.list.invalidate();

await onSuccess?.(data);

toastSuccess(
Expand Down

0 comments on commit c47753f

Please sign in to comment.