mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 09:21:24 +08:00
fix(core): unexpected re-render in edgeless (#7077)
This commit is contained in:
+6
-2
@@ -259,7 +259,11 @@ export const BlocksuiteEditorContainer = forwardRef<
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (selection[0]?.type !== 'block') {
|
if (selection[0]?.type !== 'block') {
|
||||||
return currentView.history.replace(currentPath);
|
if (locationHash) {
|
||||||
|
// Clear the hash if no block is selected
|
||||||
|
currentView.replace(currentPath);
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const selectedId = selection[0]?.blockId;
|
const selectedId = selection[0]?.blockId;
|
||||||
@@ -270,7 +274,7 @@ export const BlocksuiteEditorContainer = forwardRef<
|
|||||||
|
|
||||||
// Only update the hash if it has changed
|
// Only update the hash if it has changed
|
||||||
if (locationHash !== newHash) {
|
if (locationHash !== newHash) {
|
||||||
currentView.history.replace(currentPath + newHash);
|
currentView.replace(currentPath + newHash);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
affineEditorContainerProxy.updateComplete
|
affineEditorContainerProxy.updateComplete
|
||||||
|
|||||||
@@ -59,6 +59,12 @@ export interface CreateCheckoutSessionInput {
|
|||||||
successCallbackLink: InputMaybe<Scalars['String']['input']>;
|
successCallbackLink: InputMaybe<Scalars['String']['input']>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface DeleteSessionInput {
|
||||||
|
docId: Scalars['String']['input'];
|
||||||
|
sessionIds: Array<Scalars['String']['input']>;
|
||||||
|
workspaceId: Scalars['String']['input'];
|
||||||
|
}
|
||||||
|
|
||||||
export enum EarlyAccessType {
|
export enum EarlyAccessType {
|
||||||
AI = 'AI',
|
AI = 'AI',
|
||||||
App = 'App',
|
App = 'App',
|
||||||
|
|||||||
Reference in New Issue
Block a user