Remove extra call during creation
This commit is contained in:
parent
75de3662f3
commit
f894f74a13
|
@ -242,10 +242,6 @@ export function NewContract(props: {
|
||||||
selectedGroup: selectedGroup?.id,
|
selectedGroup: selectedGroup?.id,
|
||||||
isFree: false,
|
isFree: false,
|
||||||
})
|
})
|
||||||
if (result && selectedGroup) {
|
|
||||||
await addContractToGroup(selectedGroup, result.id, creator.id)
|
|
||||||
}
|
|
||||||
|
|
||||||
await router.push(contractPath(result as Contract))
|
await router.push(contractPath(result as Contract))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('error creating contract', e, (e as any).details)
|
console.error('error creating contract', e, (e as any).details)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user