Skip to content

Commit 652a807

Browse files
committed
fix: update import for undefined from zod and adjust file assignment in EditSong context
1 parent c9b2ea9 commit 652a807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/frontend/src/modules/song-edit/components/client/context/EditSong.context.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
useForm,
1111
} from 'react-hook-form';
1212
import toaster from 'react-hot-toast';
13-
import { undefined } from 'zod';
13+
import { undefined as zodUndefined } from 'zod';
1414

1515
import type { UploadSongDtoType } from '@nbw/database';
1616
import { parseSongFromBuffer } from '@nbw/song';
@@ -147,7 +147,7 @@ export const EditSongProvider = ({
147147
license: formMethods.getValues().license as UploadSongDtoType['license'],
148148
category: formMethods.getValues()
149149
.category as UploadSongDtoType['category'],
150-
file: undefined,
150+
file: zodUndefined,
151151
};
152152

153153
// TODO: this comparison is not needed. Use isDirty field from react-hook-form

0 commit comments

Comments
 (0)