Fixing Channel page directory selection.

This commit is contained in:
Roland 2024-10-04 12:19:49 -06:00
parent ed439256fb
commit c05078c513
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
4 changed files with 12 additions and 44 deletions

View file

@ -423,7 +423,6 @@ export const useChannel = (channel_id) => {
const emptyChannel = {
name: '',
directory: '',
mkdir: false,
url: '',
download_frequency: '',
match_regex: '',
@ -462,7 +461,9 @@ export const useChannel = (channel_id) => {
}, [channel_id])
const changeValue = (name, value) => {
setChannel({...channel, [name]: value});
const newChannel = {...channel, [name]: value};
console.debug('useChannel.changeValue', newChannel);
setChannel(newChannel);
}
return {channel, changeValue, original, fetched, fetchChannel: localGetChannel};