Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor committed Jul 10, 2024
1 parent 2641bb7 commit 67a4402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/ResourceForm/components/ResourceForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export function ResourceForm({
const [editorError, setEditorError] = useState(null);

useEffect(() => {
// Check if form is opened based on width
if (leavingForm && formElementRef.current?.clientWidth > 0) {
//check if form is opened based on width
if (
JSON.stringify(excludeStatus(resource)) !==
JSON.stringify(excludeStatus(initialResource)) ||
Expand Down

0 comments on commit 67a4402

Please sign in to comment.