-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: additional simple DVT motions validation #242
base: develop
Are you sure you want to change the base?
Conversation
…eat/additional-simple-dvt-validations
Preview stand statusStand was demolished |
motionType: MotionTypeForms.SDVTNodeOperatorNamesSet, | ||
callDataKey: 'name', | ||
formDataKey: 'name', | ||
...args, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that better use ...args
on to object creation, to be sure that no key reassign (if reassign not planning)
} | ||
|
||
if (!acc[motionType]) { | ||
acc[motionType] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest using if (!acc[motionType]) { acc[motionType] = []}
without else
, to not duplicate code
Add missing validations from validations doc