mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
bug fixed : canavs background color is not getting applied in the viewer mode (#4818)
This commit is contained in:
parent
71ed5bf490
commit
5ae46081de
1 changed files with 4 additions and 2 deletions
|
|
@ -261,9 +261,11 @@ class ViewerComponent extends React.Component {
|
|||
}
|
||||
|
||||
computeCanvasBackgroundColor = () => {
|
||||
const resolvedBackgroundColor =
|
||||
resolveReferences(this.state.appDefinition?.globalSettings?.backgroundFxQuery, this.state.currentState) ??
|
||||
const bgColor =
|
||||
(this.state.appDefinition.globalSettings?.backgroundFxQuery ||
|
||||
this.state.appDefinition.globalSettings?.canvasBackgroundColor) ??
|
||||
'#edeff5';
|
||||
const resolvedBackgroundColor = resolveReferences(bgColor, this.state.currentState);
|
||||
if (['#2f3c4c', '#edeff5'].includes(resolvedBackgroundColor)) {
|
||||
return this.props.darkMode ? '#2f3c4c' : '#edeff5';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue