Skip to content

Commit

Permalink
fix: add comment - 3314 (#3316)
Browse files Browse the repository at this point in the history
Add comment
  • Loading branch information
timarney authored and Vivian Nobrega committed Apr 16, 2024
1 parent 615766d commit 1a9332b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const RuleIndicator = ({ choiceId }: { choiceId: string }) => {
);

const elements = useTemplateStore((state) => state.form.elements);
// Ensure elements are sorted by layout
const sortedElements = sortByLayout({ layout, elements: [...elements] });

const parentId = Number(choiceId.split(".")[0]);
const childId = Number(choiceId.split(".")[1]);
const choice = getChoice(parentId, childId);
Expand Down

0 comments on commit 1a9332b

Please sign in to comment.