mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 18:54:58 +00:00
fixed channel form not updating some properties after saving
This commit is contained in:
parent
a9ea30d862
commit
79392bb129
2 changed files with 5 additions and 4 deletions
|
|
@ -161,6 +161,7 @@ const Channel = ({ channel = null, isOpen, onClose }) => {
|
|||
console.error('Error saving channel:', error);
|
||||
}
|
||||
|
||||
formik.resetForm();
|
||||
API.requeryChannels();
|
||||
setSubmitting(false);
|
||||
setTvgFilter('');
|
||||
|
|
|
|||
|
|
@ -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' }}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue