Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Undo linting again
Browse files Browse the repository at this point in the history
jamdelion committed Jan 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 4d56ed4 commit 6fb504a
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -58,14 +58,14 @@ export const ChecklistEditor: React.FC<ChecklistProps> = (props) => {
...values,
...(groupedOptions
? {
categories: groupedOptions.map((group) => ({
title: group.title,
count: group.children.length,
})),
}
categories: groupedOptions.map((group) => ({
title: group.title,
count: group.children.length,
})),
}
: {
categories: undefined,
}),
categories: undefined,
}),
},
},
processedOptions,
@@ -88,7 +88,8 @@ export const ChecklistEditor: React.FC<ChecklistProps> = (props) => {
'Cannot configure exclusive "or" option alongside "all required" setting';
}
if (values.fn && !options?.some((option) => option.data.val)) {
errors.fn = "At least one option must also set a data field";
errors.fn =
"At least one option must also set a data field";
}
if (exclusiveOptions && exclusiveOptions.length > 1) {
errors.options =

0 comments on commit 6fb504a

Please sign in to comment.