-
Notifications
You must be signed in to change notification settings - Fork 0
Chore/SOF-6991 #80
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
base: main
Are you sure you want to change the base?
Chore/SOF-6991 #80
Conversation
8f15ee2
to
9df4b77
Compare
src/utils/filter.ts
Outdated
const defaultIndex = pathObjects.findIndex((pathObj) => { | ||
return isPathSupported(pathObj, [defaultFilter]); | ||
}); | ||
if (defaultIndex < 0 || pathObjects.length < 2) return pathObjects; |
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.
What's the magic number 2? Let's explain the logic
src/utils/filter.ts
Outdated
}); | ||
if (defaultIndex < 0 || pathObjects.length < 2) return pathObjects; | ||
|
||
const tmp = pathObjects[1]; |
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.
Same as above for the indices
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.
corrected the error and added explanatory comment
This PR concerns:
isDefault
property to entity filter objects