fixed channel form not updating some properties after saving

This commit is contained in:
dekzter 2025-04-30 16:58:16 -04:00
parent a9ea30d862
commit 79392bb129
2 changed files with 5 additions and 4 deletions

View file

@ -161,6 +161,7 @@ const Channel = ({ channel = null, isOpen, onClose }) => {
console.error('Error saving channel:', error);
}
formik.resetForm();
API.requeryChannels();
setSubmitting(false);
setTvgFilter('');

View file

@ -95,19 +95,19 @@ const ChannelRowActions = React.memo(
}) => {
const onEdit = useCallback(() => {
editChannel(row.original);
}, []);
}, [row.original]);
const onDelete = useCallback(() => {
deleteChannel(row.original.id);
}, []);
}, [row.original]);
const onPreview = useCallback(() => {
handleWatchStream(row.original);
}, []);
}, [row.original]);
const onRecord = useCallback(() => {
createRecording(row.original);
}, []);
}, [row.original]);
return (
<Box style={{ width: '100%', justifyContent: 'left' }}>