Skip to content

Commit

Permalink
Fix path uuid lookup bug (#411)
Browse files Browse the repository at this point in the history
* Fix uuid lookup

* get the element based on the index, if that's undefined, find it by matching the uuid
  • Loading branch information
davidanastasov authored Nov 22, 2021
1 parent 7c99485 commit 0899171
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/data-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,10 @@ export default class DataManager {
if (result.groups.length > 0) {
return result.groups[current];
} else if (result.data) {
return result.data[current];
return (
result.data[current] ||
result.data.find((data) => data.tableData?.uuid === current)
);
} else {
return undefined;
}
Expand Down

0 comments on commit 0899171

Please sign in to comment.