Skip to content

Commit

Permalink
fix(RulesTable): prevent error on rule expand (#2319)
Browse files Browse the repository at this point in the history
* fix(RulesTable): prevent error on rule expand

* fix: Wait for valueDefinitions to be defined before RuleDetailsRow render

---------

Co-authored-by: Georgii Karataev <[email protected]>
  • Loading branch information
LightOfHeaven1994 and gkarat authored Jan 6, 2025
1 parent 2808780 commit aa4ba1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PresentationalComponents/RulesTable/RulesTableRest.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ const RulesTable = ({
};

return valueDefinitions === undefined ||
valueDefinitions.loading === true ? (
valueDefinitions.loading === true ||
valueDefinitions.data === undefined ? (
<List />
) : (
<RuleDetailsRow
Expand Down

0 comments on commit aa4ba1c

Please sign in to comment.