From 3a090de2d7206c134aa30f02e4fc2af2640d74cb Mon Sep 17 00:00:00 2001 From: navaneeth Date: Thu, 2 Sep 2021 13:55:10 +0530 Subject: [PATCH] Default for customObjects and default color for table text --- frontend/src/Editor/Components/components.js | 2 +- frontend/src/_helpers/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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('}}', '');