mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Default for customObjects and default color for table text
This commit is contained in:
parent
d0555f67ad
commit
3a090de2d7
2 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ export const componentTypes = [
|
||||||
},
|
},
|
||||||
events: [],
|
events: [],
|
||||||
styles: {
|
styles: {
|
||||||
textColor: { value: '#000' },
|
textColor: { value: '' },
|
||||||
visibility: {value: '{{true}}'}
|
visibility: {value: '{{true}}'}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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 (typeof object === 'string') {
|
||||||
if (object.startsWith('{{') && object.endsWith('}}')) {
|
if (object.startsWith('{{') && object.endsWith('}}')) {
|
||||||
const code = object.replace('{{', '').replace('}}', '');
|
const code = object.replace('{{', '').replace('}}', '');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue