Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Fix view fields memo

Hakan Shehu1a11494b09cf
diff --git a/apps/desktop/src/renderer/components/databases/view.tsx b/apps/desktop/src/renderer/components/databases/view.tsx
index a49dacf1..88772583 100644
--- a/apps/desktop/src/renderer/components/databases/view.tsx
+++ b/apps/desktop/src/renderer/components/databases/view.tsx
@@ -50,7 +50,7 @@ export const View = ({ view }: ViewProps) => {
})
.filter((field) => field.display)
.sort((a, b) => compareString(a.index, b.index));
- }, [database.fields, view.fields]);
+ }, [view.id, database.fields, view.fields]);
const [isSearchBarOpened, setIsSearchBarOpened] = React.useState(false);
const [isSortsOpened, setIsSortsOpened] = React.useState(false);