Skip to content

Commit

Permalink
fix node not displaying with any display field
Browse files Browse the repository at this point in the history
  • Loading branch information
molotgor committed Jan 21, 2025
1 parent 74038de commit 5d1ac1f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/helpers/JSONViewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ export const parseText = (
const js = JSON.parse(text);
const node = convertJSONtoNode(js, undefined, isGeneratedKey, defaultViewType);

if (node.simpleFields.length > 0) {
if (
node.simpleFields.length > 0 ||
node.displayName ||
node.displayTable ||
node.displayTimestamp
) {
return [
{
...node,
Expand Down

0 comments on commit 5d1ac1f

Please sign in to comment.