Coderabbit feedback

This commit is contained in:
Joel Jeremy Marquez
2026-03-03 17:20:36 +00:00
parent b288ce5708
commit 8c190dc480
2 changed files with 2 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ export function MobileRulesPage() {
const { mutate: deleteRule } = useDeleteRuleMutation();
const handleRuleDelete = useCallback(
async (rule: RuleEntity) => {
(rule: RuleEntity) => {
deleteRule(
{ id: rule.id },
{

View File

@@ -1016,9 +1016,7 @@ export function RuleEditor({
return parsedActions.reduce(
(acc, action) => {
const splitIndex =
'options' in action && 'splitIndex' in action.options
? (action.options.splitIndex ?? 0)
: 0;
'options' in action ? (action.options?.splitIndex ?? 0) : 0;
acc[splitIndex] = acc[splitIndex] ?? { id: uuid(), actions: [] };
acc[splitIndex].actions.push({ ...action, inputKey: uuid() });
return acc;