From 1356e433a641bc9eafdd61e4c2e8d08a473f5f08 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 9 Oct 2022 08:53:37 -0700 Subject: [PATCH] Fix mobile render logic. --- packages/editor/src/classes/action/capability/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/classes/action/capability/index.ts b/packages/editor/src/classes/action/capability/index.ts index 1703d1f1..030a1f8a 100644 --- a/packages/editor/src/classes/action/capability/index.ts +++ b/packages/editor/src/classes/action/capability/index.ts @@ -51,7 +51,7 @@ class Capability { // Had been overwrited for mobile ... if (!result && this.isMobile) { - const mobileCapability: EditorRenderMode[] = mapping.desktop?.hidden; + const mobileCapability: EditorRenderMode[] = mapping.mobile?.hidden; result = mobileCapability?.includes(this.mode); } } @@ -85,7 +85,7 @@ class Capability { // Had been overwrited for mobile ... if (!result && this.isMobile) { - const mobileCapability: EditorRenderMode[] = mapping.desktop?.hidden; + const mobileCapability: EditorRenderMode[] = mapping.mobile?.hidden; result = mobileCapability?.includes(this.mode); } }