From 81fc9e1aa13e3385609beb079075445a3497e9c8 Mon Sep 17 00:00:00 2001 From: L-Sun Date: Tue, 12 Nov 2024 02:24:14 +0000 Subject: [PATCH] fix(mobile): typo of identifier when override config (#8773) Fixed a typo in the mobile patches where the wrong identifier was being used to override `affine:page` configs. --- .../block-suite-editor/specs/custom/spec-patchers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx index 7bfe35ca90..3c317e72a4 100644 --- a/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx +++ b/packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx @@ -557,7 +557,7 @@ export function patchForMobile() { // page configs { const pageConfigIdentifier = ConfigIdentifier('affine:page'); - const prev = di.getFactory(ConfigIdentifier); + const prev = di.getFactory(pageConfigIdentifier); di.override(pageConfigIdentifier, provider => { return {