From f4ad5f7f465837ec37002507a36f018a8fca2571 Mon Sep 17 00:00:00 2001 From: Kyle Shanks Date: Fri, 26 May 2023 15:14:01 -0400 Subject: [PATCH] [C-2592] Fix edit playlist (#3443) --- .../src/screens/edit-playlist-screen/EditPlaylistScreen.tsx | 1 + packages/mobile/src/screens/page-form-screen/PageFormScreen.tsx | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mobile/src/screens/edit-playlist-screen/EditPlaylistScreen.tsx b/packages/mobile/src/screens/edit-playlist-screen/EditPlaylistScreen.tsx index a02d921eb57..221b1730324 100644 --- a/packages/mobile/src/screens/edit-playlist-screen/EditPlaylistScreen.tsx +++ b/packages/mobile/src/screens/edit-playlist-screen/EditPlaylistScreen.tsx @@ -56,6 +56,7 @@ export const EditPlaylistScreen = () => { if (!playlist) return null const initialValues: EditPlaylistValues = { + ...playlist, playlist_name: playlist.playlist_name, description: playlist.description, artwork: { diff --git a/packages/mobile/src/screens/page-form-screen/PageFormScreen.tsx b/packages/mobile/src/screens/page-form-screen/PageFormScreen.tsx index 68473817b22..508d4b471c5 100644 --- a/packages/mobile/src/screens/page-form-screen/PageFormScreen.tsx +++ b/packages/mobile/src/screens/page-form-screen/PageFormScreen.tsx @@ -77,7 +77,6 @@ export const FormScreen = (props: FormScreenProps) => { }, [navigation, onReset]) const handleSubmit = useCallback(() => { - console.log({ onSubmit }) onSubmit?.() if (goBackOnSubmit) { navigation.goBack()