Skip to content
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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

katamarinaki
Copy link
Contributor

@katamarinaki katamarinaki commented Jan 30, 2024

Add missing validations from validations doc

@katamarinaki katamarinaki requested review from a team as code owners January 30, 2024 11:13
@preview-stands
Copy link

preview-stands bot commented Jan 30, 2024

Preview stand status

Stand was demolished

@katamarinaki katamarinaki changed the title Feat/additional simple dvt validations feat: additional simple DVT motions validations Jan 30, 2024
@katamarinaki katamarinaki changed the title feat: additional simple DVT motions validations feat: additional simple DVT motions validation Jan 30, 2024
motionType: MotionTypeForms.SDVTNodeOperatorNamesSet,
callDataKey: 'name',
formDataKey: 'name',
...args,
Copy link
Contributor

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] = [
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants