mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix: prohibit create first page besides local workspace (#1751)
This commit is contained in:
@@ -35,6 +35,10 @@ const AllPage: NextPageWithLayout = () => {
|
||||
if (!currentWorkspace) {
|
||||
return;
|
||||
}
|
||||
if (currentWorkspace.flavour !== WorkspaceFlavour.LOCAL) {
|
||||
// only create a new page for local workspace
|
||||
return;
|
||||
}
|
||||
const localProvider = currentWorkspace.providers.find(
|
||||
provider => provider.flavour === 'local-indexeddb'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user