diff --git a/frontend/src/Editor/Components/components.js b/frontend/src/Editor/Components/components.js index 4cf22f051e..6b717d536c 100644 --- a/frontend/src/Editor/Components/components.js +++ b/frontend/src/Editor/Components/components.js @@ -72,7 +72,7 @@ export const componentTypes = [ }, events: [], styles: { - textColor: { value: '#000' }, + textColor: { value: '' }, visibility: {value: '{{true}}'} }, }, diff --git a/frontend/src/_helpers/utils.js b/frontend/src/_helpers/utils.js index f39c376f7a..ae986f5e65 100644 --- a/frontend/src/_helpers/utils.js +++ b/frontend/src/_helpers/utils.js @@ -34,7 +34,7 @@ export function resolveAll(data, state) { } -export function resolveReferences(object, state, customObjects) { +export function resolveReferences(object, state, customObjects = {}) { if (typeof object === 'string') { if (object.startsWith('{{') && object.endsWith('}}')) { const code = object.replace('{{', '').replace('}}', '');