fix(core): can't open history modal in self-hosting client (#11336)

handle #11282
This commit is contained in:
JimmFly
2025-04-01 03:18:22 +00:00
parent 7478df56ee
commit 93d4b6dc4d
@@ -80,7 +80,7 @@ export const PageHeaderMenuButton = ({
const openHistoryModal = useCallback(() => {
track.$.header.history.open();
if (workspace.flavour === 'affine-cloud') {
if (workspace.flavour !== 'local') {
return setHistoryModalOpen(true);
}
return setOpenHistoryTipsModal(true);
@@ -443,7 +443,7 @@ const PageHeaderMenuItem = ({
onSelect={handleOpenTrashModal}
disabled={!canMoveToTrash}
/>
{BUILD_CONFIG.isWeb && workspace.flavour === 'affine-cloud' ? (
{BUILD_CONFIG.isWeb && workspace.flavour !== 'local' ? (
<MenuItem
prefixIcon={<LocalWorkspaceIcon />}
data-testid="editor-option-menu-link"