update to use org name to create task

pull/12079/head
Iris Scholten 2019-02-21 14:52:14 -08:00
parent ffc88da46a
commit 86147c2808
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ export const saveNewScript = (
org = orgs[0] org = orgs[0]
} }
await client.tasks.create(getDeep<string>(org, 'id', ''), scriptWithOptions) await client.tasks.create(org.name, scriptWithOptions)
dispatch(setNewScript('')) dispatch(setNewScript(''))
dispatch(clearTask()) dispatch(clearTask())