Skip to content

Commit 6fc7d03

Browse files
feat: Set property to define attribute instead of looking at id start
1 parent 05e51b6 commit 6fc7d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AttributeTreeView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
import attributeData from '@site/static/attribute-data.json';
1717

1818
const CustomTreeLabel = ({node, selectedAttributes, setSelectedAttributes, ...props}) => {
19-
const isAttribute = node?.id?.toString().startsWith('a');
19+
const isAttribute = node?.isAttribute === true;
2020

2121
const value = useMemo(
2222
() => isAttribute && selectedAttributes.find((x) => x.id === node.id) !== undefined,

0 commit comments

Comments
 (0)