Default for customObjects and default color for table text

This commit is contained in:
navaneeth 2021-09-02 13:55:10 +05:30
parent d0555f67ad
commit 3a090de2d7
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ export const componentTypes = [
},
events: [],
styles: {
textColor: { value: '#000' },
textColor: { value: '' },
visibility: {value: '{{true}}'}
},
},

View file

@ -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('}}', '');