mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
ProjectContext: add empty table array if table field missing in settings doc
This commit is contained in:
@@ -118,6 +118,8 @@ export const ProjectContextProvider: React.FC = ({ children }) => {
|
||||
id: table.id || table.collection, // Ensure id exists
|
||||
}))
|
||||
);
|
||||
} else if (!settings.loading) {
|
||||
setTables([]);
|
||||
}
|
||||
}, [settings, userRoles]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user