]> git.localhorst.tv Git - alttp.git/commitdiff
fix value of restream channel select
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 9 Aug 2025 12:19:19 +0000 (14:19 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 9 Aug 2025 12:19:19 +0000 (14:19 +0200)
resources/js/components/episodes/RestreamAddForm.jsx

index 64c702d1799436b24af18c6fa3434919a46b7f99..2ab2f9b3cb7750f484a3ae1bdb48b9ba075f8bd7 100644 (file)
@@ -143,7 +143,10 @@ export default withUser(withFormik({
                const { setErrors } = actions;
                const { onSubmit } = actions.props;
                try {
-                       await onSubmit(values);
+                       await onSubmit({
+                               ...values,
+                               channel_id: parseInt(values.channel_id, 10),
+                       });
                } catch (e) {
                        if (e.response && e.response.data && e.response.data.errors) {
                                setErrors(laravelErrorsToFormik(e.response.data.errors));