full-greenF
Refine3y ago
14 replies
full-green

Supabase clone with new id

When I am trying to clone a record and hit save I get the error

duplicate key value violates unique constraint "contract_pkey"
There was an error creating contract (status code: 23505)


because it is trying to use the id of the original record as the id of the new record. How can I change this so that it will post the new record without the id so that supabase can dynamically generate an id?
Was this page helpful?