Update BaseDirective.js

pull/5507/head
mertsincan 2024-02-20 14:59:34 +00:00
parent 0ce4b3a229
commit ea10aea82b
1 changed files with 1 additions and 2 deletions

View File

@ -78,8 +78,7 @@ const BaseDirective = {
const preset = instance.globalPresetCTheme();
if (preset) {
const { variables } = preset;
const { colorScheme, ...vRest } = variables || {};
const { colorScheme, ...vRest } = preset;
const { dark, ...csRest } = colorScheme || {};
const vRest_css = ObjectUtils.isNotEmpty(vRest) ? toVariables({ [instance.$name]: vRest }).css : '';
const csRest_css = ObjectUtils.isNotEmpty(csRest) ? toVariables({ [instance.$name]: csRest }).css : '';