Skip to content

Commit

Permalink
lint issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaKhanAbdalli committed Jan 23, 2024
1 parent 44b9baa commit c0f638b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/reference-data/ReferenceDataForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const FormContent = ({
}, [isValid])

useEffect(() => {
if (Object.keys(dirtyFields).includes('id')) {
if (dirtyFields.id !== undefined && dirtyFields.id === true) {
setIsIDChanged(true)
}
}, [{ ...dirtyFields }])
Expand Down

0 comments on commit c0f638b

Please sign in to comment.