You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prisma arrays technically cannot be optional, so when you don't enter values it creates an empty array. When trying to edit an entry in NextAdmin, it won't let me leave this array empty, as it requires a value. Need it to write an empty array by default. We're getting around it right now by disabling editing on this field.
Reproduction URL
cannot share
Reproduction steps
Any Prisma value with an empty array. Below is the structure we have.
model Collection {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
type CollectionType
overrides Override[]
}
enum Override {
ROTATE
AUTOCROP
DUPLICATE
}
Next router
App router
Next Admin version
7.0.1
Screenshots
![DESCRIPTION](LINK.png)
Next Admin options
No response
Logs
No response
Browsers
Chrome, Safari
The text was updated successfully, but these errors were encountered:
Description
Prisma arrays technically cannot be optional, so when you don't enter values it creates an empty array. When trying to edit an entry in NextAdmin, it won't let me leave this array empty, as it requires a value. Need it to write an empty array by default. We're getting around it right now by disabling editing on this field.
Reproduction URL
cannot share
Reproduction steps
Next router
App router
Next Admin version
7.0.1
Screenshots
![DESCRIPTION](LINK.png)
Next Admin options
No response
Logs
No response
Browsers
Chrome, Safari
The text was updated successfully, but these errors were encountered: