Skip to content

Commit

Permalink
Fixup type check and lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
solomonhawk committed Nov 7, 2024
1 parent e4230cf commit 1e0afe5
Show file tree
Hide file tree
Showing 4 changed files with 311 additions and 28 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/features/routing/pages/root/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { signIn, signOut, useSession } from "@manifold/auth/client";
import { signIn, signOut } from "@manifold/auth/client";
import { GlobalHeader } from "@manifold/ui/components/global-header";
import { Badge } from "@manifold/ui/components/ui/badge";
import { Button } from "@manifold/ui/components/ui/button";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/features/table/api/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function useUpdateTable({

// update query cache (list + get)
trpcUtils.table.get.setData(tableId, data);
trpcUtils.table.list.setData(undefined, (list) => {
trpcUtils.table.list.setData({}, (list) => {
return list?.map((t) => (t.id === data.id ? data : t)) ?? [data];
});

Expand Down
Loading

0 comments on commit 1e0afe5

Please sign in to comment.