Skip to content

Commit

Permalink
Merge pull request #329 from FalkorDB/fix-the-attributes-count
Browse files Browse the repository at this point in the history
Fix #328 don't count / display name when equal to id
  • Loading branch information
AviAvni authored Aug 18, 2024
2 parents b65ba6c + d5b8ecb commit 62548d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/graph/GraphDataPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default function GraphDataPanel({ inSchema, obj, onExpand, setProperty, s
/>
{label}
</div>
<p className="flex text-white">{Object.keys(obj).filter((v) => !excludedProperties.has(v)).length} Attributes</p>
<p className="flex text-white">{Object.entries(obj).filter(([k, v]) => !excludedProperties.has(k) && !(k === "name" && v === obj.id)).length} Attributes</p>
</div>
<div className="w-full h-1 grow flex flex-col justify-between items-start font-medium">
<Table>
Expand Down

0 comments on commit 62548d2

Please sign in to comment.