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
convertParam function doesn't handle arrays. When it converts an integer array property (prisma type is Int[]) it tries to parse it as a Number and it leads to undefined behaviour. I believe to fix that you need to override isArray method in the Property class and adjust convertParam accordingly.
Would love to see a fix for this, as any model with Type[] or JSONB arrays are no longer editable through the dashboard. All update requests send NaN for any Int[] fields that we're commonly using in our schema.
convertParam
function doesn't handle arrays. When it converts an integer array property (prisma type isInt[]
) it tries to parse it as aNumber
and it leads to undefined behaviour. I believe to fix that you need to overrideisArray
method in theProperty
class and adjustconvertParam
accordingly.adminjs-prisma/src/utils/converters.ts
Lines 8 to 31 in 0cd6a63
As a temporary fix I have to patch
convertParam
with something like this:The text was updated successfully, but these errors were encountered: