Closed Caele closed 2 years ago
Don't we already have that?
I misspelled a bit, what I mean is that we do useState(options) and then never set that state. So we should be able to use options directly instead. Unless there is a specific reason, which from my point of view could only be because of a bug somewhere. Added this as a github issue as it isn't a priority, but didn't want it to get lost. Will look at adding more of these as I find oddities in the code.
The useState part below should not be needed, https://github.com/qlik-oss/sn-org-chart/blob/master/src/index.js#L47