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
{{ message }}
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.
I fixed this temporarily with a middleware as I'm not knowledgable enough with lodash and reactive stuff to fix the underlying issue
Here it is if you need it @EdenCoder
import{ActionTypes}from"mongorito";exportdefault()=>{return({ model })=>next=>action=>{if(action.type===ActionTypes.SET){for(constkeyinaction.fields){if(Array.isArray(action.fields[key])){model.unset(key);}}}returnnext(action);};};
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using
set
on a field of typeArray
, the field is concatenated. It should be overwritten shouldn't it?The text was updated successfully, but these errors were encountered: