remove rootComponentName since it's not working right
This commit is contained in:
parent
3ca882f883
commit
7314092d19
|
@ -173,8 +173,6 @@ export const getEngineChecksum = () => engineChecksum
|
||||||
* @param {boolean} onlyNormalState - only use components 'normal' states, meant for generating theme
|
* @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
|
* previews since states are the biggest factor for compilation time and are completely unnecessary
|
||||||
* when previewing multiple themes at same time
|
* 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 = ({
|
export const init = ({
|
||||||
inputRuleset,
|
inputRuleset,
|
||||||
|
@ -183,9 +181,9 @@ export const init = ({
|
||||||
liteMode = false,
|
liteMode = false,
|
||||||
editMode = false,
|
editMode = false,
|
||||||
onlyNormalState = false,
|
onlyNormalState = false,
|
||||||
rootComponentName = 'Root',
|
|
||||||
initialStaticVars = {}
|
initialStaticVars = {}
|
||||||
}) => {
|
}) => {
|
||||||
|
const rootComponentName = 'Root'
|
||||||
if (!inputRuleset) throw new Error('Ruleset is null or undefined!')
|
if (!inputRuleset) throw new Error('Ruleset is null or undefined!')
|
||||||
const staticVars = { ...initialStaticVars }
|
const staticVars = { ...initialStaticVars }
|
||||||
const stacked = {}
|
const stacked = {}
|
||||||
|
|
Loading…
Reference in a new issue