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:
parent
4bcac4e346
commit
e2f5eb0557
31 changed files with 155 additions and 507 deletions
|
|
@ -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);
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue