update as in the harvest plan api
This commit is contained in:
parent
0d3f7fa8a6
commit
a99ab8b8b5
3 changed files with 16 additions and 13 deletions
|
|
@ -48,7 +48,7 @@ export default function DuplicateHarvestPlan(props: Props) {
|
|||
if (title !== "") {
|
||||
planSettings.title = title;
|
||||
}
|
||||
harvestPlanAPI.addHarvestPlan(planSettings).then(resp => {
|
||||
harvestPlanAPI.addHarvestPlan(planSettings, as).then(resp => {
|
||||
let tasks = planTasks;
|
||||
tasks.forEach(task => {
|
||||
task.settings.objectKey = resp.data.harvestPlan;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue