-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
check for null/undefined session in addSessionData #1698
Conversation
lib/actions/sessions.js
Outdated
data | ||
}); | ||
const session = getState().sessions.sessions[uid]; | ||
if (session !== null && session !== undefined) { |
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.
if (session)
should do the trick
friendly ping? :) This is hitting me almost every day |
Great work btw, @zsol! |
type: SESSION_PTY_DATA, | ||
uid, | ||
data | ||
}); |
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.
Why has this been moved outside of the else? Will it happen twice if it is a URL?
No it won't, notice the return in the then double if. I think it's cleaner
this way.
…On Fri, Apr 28, 2017, 22:19 Marty Gentillon ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In lib/actions/sessions.js
<#1698 (comment)>:
> }
+ dispatch({
+ type: SESSION_PTY_DATA,
+ uid,
+ data
+ });
Why has this been moved outside of the else? Will it happen twice if it
isn't a URL?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1698 (review)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAEEtMEvixou2mlIl379cuvoQbqfjSWBks5r0lfGgaJpZM4MouOg>
.
|
Work around incorrect event ordering between
SESSION_PTY_EXIT
andSESSION_ADD_DATA
. See #1628 for more context.This is ready to merge. Fixes #1628.