modified th api's for bin, contract and task to have as passed in as a prop and not get it ffrom the global state directly in the api

This commit is contained in:
csawatzky 2025-04-17 13:33:27 -06:00
parent 4bcac4e346
commit e2f5eb0557
31 changed files with 155 additions and 507 deletions

View file

@ -119,7 +119,7 @@ export default function TaskSettings(props: Props) {
returnTask.settings = taskSettings;
taskAPI
.addTask(taskSettings)
.addTask(taskSettings, as)
.then(resp => {
props.onClose(true);
})
@ -145,7 +145,7 @@ export default function TaskSettings(props: Props) {
: 0;
taskAPI
.updateTask(task.key, task.settings)
.updateTask(task.key, task.settings, undefined, as)
.then(resp => {
props.onClose(true);
})