Error when trying to remove optional field from organization

Hey there, when I try to remove the logo from an organization like below I get an "No values to set" error.
await auth.api.updateOrganization({
body: {
organizationId,
data: {
logo: undefined
},
},
headers: await headers(),
})
await auth.api.updateOrganization({
body: {
organizationId,
data: {
logo: undefined
},
},
headers: await headers(),
})
2 Replies
Ping
Ping2d ago
Set it to null
dennis
dennisOP2d ago
yields a typescript error, only undefined is allowed (maybe this is the actual bug here) will try by suppressing it

Did you find this page helpful?