commit: 7314092d19784add77efcf219bc4e1a478def7f0
parent 3ca882f883011abbaf3147f5e9f39a094842791e
Author: Henry Jameson <me@hjkos.com>
Date: Mon, 28 Oct 2024 20:19:21 +0200
remove rootComponentName since it's not working right
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/services/theme_data/theme_data_3.service.js b/src/services/theme_data/theme_data_3.service.js
@@ -173,8 +173,6 @@ export const getEngineChecksum = () => engineChecksum
* @param {boolean} onlyNormalState - only use components 'normal' states, meant for generating theme
* previews since states are the biggest factor for compilation time and are completely unnecessary
* when previewing multiple themes at same time
- * @param {string} rootComponentName - [UNTESTED] which component to start from, meant for previewing a
- * part of the theme (i.e. just the button) for themes 3 editor.
*/
export const init = ({
inputRuleset,
@@ -183,9 +181,9 @@ export const init = ({
liteMode = false,
editMode = false,
onlyNormalState = false,
- rootComponentName = 'Root',
initialStaticVars = {}
}) => {
+ const rootComponentName = 'Root'
if (!inputRuleset) throw new Error('Ruleset is null or undefined!')
const staticVars = { ...initialStaticVars }
const stacked = {}