From a5fc7c3580f2475eea68cfbd3bea6a98c4f81b25 Mon Sep 17 00:00:00 2001 From: Vladislav Tasev Date: Wed, 18 Dec 2024 09:32:01 +0200 Subject: [PATCH] fix: custom theme detection --- packages/base/src/theming/getThemeDesignerTheme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/base/src/theming/getThemeDesignerTheme.ts b/packages/base/src/theming/getThemeDesignerTheme.ts index 0197df3ff756..b9b7a79dfe83 100644 --- a/packages/base/src/theming/getThemeDesignerTheme.ts +++ b/packages/base/src/theming/getThemeDesignerTheme.ts @@ -68,7 +68,7 @@ const processThemeMetadata = (metadata: ThemeMetadata): ThemeDescriptor | undefi let baseThemeName; try { - themeName = metadata.Path.match(/\.([^.]+)\.css_variables$/)![1]; + themeName = metadata.Path.split(".")![2]; baseThemeName = metadata.Extends[0]; } catch (ex) { if (!warnings.has("object")) {