-
Notifications
You must be signed in to change notification settings - Fork 7
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
Navigation Component: Empty or undefined verticalKey has same behavio… #578
Conversation
…r as null If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
@@ -99,7 +99,7 @@ export class Tab { | |||
|
|||
// For tabs without config ids, map their URL to the configID | |||
// to avoid duplication of renders | |||
if (tab.verticalKey === null && tabs[tab.verticalKey] === undefined) { | |||
if (!tab.verticalKey && !tabs[tab.verticalKey]) { |
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 know it was like this in the old code, but do we need the && !tabs[tab.verticalKey]
?
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.
Oh good point, is this the logic we should have:
if (!tab.verticalKey && !tabs[tab.url])
?
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.
yes that looks good to me!
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.
lgtm!
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
#578) If an implementer passed in a verticalKey that was empty or undefined, its entry would be ignored in the navigation component. Changing the null check so any falsy verticalKey is treated the same. TEST=manual Test on local answers instance that universal verticalPages config is used when omitting vertical key.
…r as null
If an implementer passed in a verticalKey that was empty or undefined, its
entry would be ignored in the navigation component. Changing the null check
so any falsy verticalKey is treated the same.
TEST=manual
Test on local answers instance that universal verticalPages config is
used when omitting vertical key.