Cosmetics

pull/5507/head
mertsincan 2024-03-31 06:41:28 +01:00
parent 5c56d32671
commit 1fcff2c769
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import Theme from 'primevue/themes'; import Theme from 'primevue/themes';
export default (theme) => { export default (theme) => {
// @todo
const [{ options: o1 }, { options: o2 }] = [Theme.getTheme(), theme]; const [{ options: o1 }, { options: o2 }] = [Theme.getTheme(), theme];
const newTheme = { const newTheme = {
...theme, ...theme,

View File

@ -28,7 +28,7 @@ export default {
...theme.options ...theme.options
} }
}; };
this._tokens = ThemeUtils.createTokens(theme?.preset, this.defaults); this._tokens = ThemeUtils.createTokens(this.preset, this.defaults);
this.clearLoadedStyleNames(); this.clearLoadedStyleNames();
} }
}, },