Skip to content

Commit

Permalink
fix(ui): display blank data instead of null (#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay232 authored Apr 15, 2024
1 parent 9e3b93f commit 5121db6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/containers/Topic/Topic/TopicData/TopicData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ class TopicData extends Root {
mode="json"
id={'value' + index}
theme="merbivore_soft"
value={value || 'null'}
value={value ?? 'null'}
readOnly
name="UNIQUE_ID_OF_DIV"
editorProps={{ $blockScrolling: true }}
Expand All @@ -1191,7 +1191,7 @@ class TopicData extends Root {
></div>
)}
<pre className="mb-0 khq-data-highlight">
<code>{obj.value || 'null'}</code>
<code>{obj.value ?? 'null'}</code>
</pre>
</div>
);
Expand Down

0 comments on commit 5121db6

Please sign in to comment.