mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Fixes text widget not showing zero and false (#2877)
* fixed Text Widget not showing zero and false * made the required changes
This commit is contained in:
parent
efeef4d0db
commit
9eed9b1134
1 changed files with 3 additions and 1 deletions
|
|
@ -5,7 +5,9 @@ export const Text = function Text({ height, properties, styles, darkMode }) {
|
|||
const [loadingState, setLoadingState] = useState(false);
|
||||
|
||||
const { textColor, textAlign, visibility, disabledState } = styles;
|
||||
const text = properties.text ?? '';
|
||||
|
||||
const text = properties.text === 0 || properties.text === false ? properties.text?.toString() : properties.text;
|
||||
|
||||
const color = textColor === '#000' ? (darkMode ? '#fff' : '#000') : textColor;
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue