{Object.keys(nc)[0] === criterias.allOf &&
- nc.allOf?.map((c, index) => {
- if ((c as PermissionCondition).rule === undefined) {
- showMultilevelNestedConditionWarning = true;
- }
- return (
- (c as PermissionCondition).rule !== undefined && (
-
-
-
- handleRemoveNestedConditionRule(
- criterias.allOf,
- nestedConditionIndex,
- index,
- )
- }
- >
-
-
-
- )
- );
- })}
+ nc.allOf?.map((c, index) => (
+
+
+
+ handleRemoveNestedConditionRule(
+ criterias.allOf,
+ nestedConditionIndex,
+ index,
+ )
+ }
+ >
+
+
+
+ ))}
{Object.keys(nc)[0] === criterias.anyOf &&
- nc.anyOf?.map((c, index) => {
- if ((c as PermissionCondition).rule === undefined) {
- showMultilevelNestedConditionWarning = true;
- }
- return (
- (
+
+
+
+ handleRemoveNestedConditionRule(
+ criterias.anyOf,
+ nestedConditionIndex,
+ index,
+ )
+ }
>
-
-
- handleRemoveNestedConditionRule(
- criterias.anyOf,
- nestedConditionIndex,
- index,
- )
- }
- >
-
-
-
- );
- })}
+
+
+
+ ))}
{Object.keys(nc)[0] === criterias.not && (
)}
- {showMultilevelNestedConditionWarning && (
-
- This condition contains multiple nested levels that the UI
- does not yet support. Please use the CLI to view
- additional levels of nested conditions.
-
- )}
{Object.keys(nc)[0] !== criterias.not && (