Convex Dashboard erroneously prevents Save in Edit Document UX
Observed Behavior:
Edit document panel shows disabled Save button with a validation message: Please fix the errors above to continue".
Steps to reproduce:
1) RIght click and invoke the menu button
2) Click Edit document Workaround: 1) the error goes away if you type a valid number 2) Double Click a column and manually type there without invoking the menu button
Expected behavior: Is Convex dashboard really not going to let me update the picUrl manually, because deleted_at is undefined? The Edit Document behavior should allow an edit. We acknowledge undefined is not a type in convex, but it's used to delete data. https://docs.convex.dev/database/types unset data is typeof undefined. v.Optional in convex does not work for the null type So, There is some incompatibility somewhere.
2) Click Edit document Workaround: 1) the error goes away if you type a valid number 2) Double Click a column and manually type there without invoking the menu button
Expected behavior: Is Convex dashboard really not going to let me update the picUrl manually, because deleted_at is undefined? The Edit Document behavior should allow an edit. We acknowledge undefined is not a type in convex, but it's used to delete data. https://docs.convex.dev/database/types unset data is typeof undefined. v.Optional in convex does not work for the null type So, There is some incompatibility somewhere.
Data Types | Convex Developer Hub
All Convex documents are defined as Javascript objects. These objects can have


8 Replies

HI Matt, do you experience the same issue if you remove the
deleted_at
key from the document completely while editing?If I remove the deleted_at key, I bypass that validation, and am able to save
cool, glad that works for now. Was the dashboard adding
deleted_at: undefined
on it's own? If so, that's a bug we can fixNo, that’s a custom column my team added to the table
I just meant when you go into edit mode, did
deleted_at
appear as undefined
instead of just being omitted?Yes it did
cool thanks Matt! That's a bug we'll look into