mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
fix for #207 ui not updating on task interval change
This commit is contained in:
@@ -54,11 +54,8 @@ export default function Tasks() {
|
||||
},
|
||||
}
|
||||
)
|
||||
.then(() => {
|
||||
let taskstate = taskIntervals;
|
||||
taskstate[taskName] = { Interval: Interval };
|
||||
console.log(taskstate);
|
||||
setTaskIntervals(taskstate);
|
||||
.then((response) => {
|
||||
setTaskIntervals(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error);
|
||||
|
||||
Reference in New Issue
Block a user