Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/form/fields/FieldSetField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
</BaseFormDescription>
) : null}
<div className='grid gap-4'>
{fields.map((field: $TSFixMe) => {

Check warning on line 242 in src/components/form/fields/FieldSetField.tsx

View workflow job for this annotation

GitHub Actions / Lint and Format

react(jsx-key)

src/components/form/fields/FieldSetField.tsx:242:21: Missing "key" prop for element in iterator.
if (field.calculateDynamicProperties) {
field = {
...field,
Expand All @@ -248,7 +248,11 @@
};
}

if (field.isVisible === false || field.deprecated) {
if (
field.isVisible === false ||
field.deprecated ||
field.hidden
) {
return null; // Skip hidden or deprecated fields
}

Expand Down
3 changes: 3 additions & 0 deletions src/flows/Onboarding/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,9 @@ export const useOnboarding = ({
},
},
},
employer_acknowledges_risk: {
presentation: { hidden: true },
},
Comment thread
gabrielseco marked this conversation as resolved.
Resolved
...(isDailyScheduleEnabled
? {
daily_schedule: {
Expand Down
Loading