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,
|
||||
isFree: false,
|
||||
})
|
||||
if (result && selectedGroup) {
|
||||
await addContractToGroup(selectedGroup, result.id, creator.id)
|
||||
}
|
||||
|
||||
await router.push(contractPath(result as Contract))
|
||||
} catch (e) {
|
||||
console.error('error creating contract', e, (e as any).details)
|
||||
|
|
Loading…
Reference in New Issue
Block a user