Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
d91bac94
Commit
d91bac94
authored
Jun 30, 2016
by
Ray Schamp
Committed by
GitHub
Jun 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #644 from mewtaylor/issue/gh-643-null-redux
Fix GH-643: use empty string if no cookie value found
parents
300831c1
5cc6eb3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
src/redux/permissions.js
src/redux/permissions.js
+2
-0
src/redux/token.js
src/redux/token.js
+2
-0
No files found.
src/redux/permissions.js
View file @
d91bac94
...
...
@@ -24,6 +24,8 @@ module.exports.getPermissions = function () {
return
function
(
dispatch
)
{
jar
.
getUnsignedValue
(
'
scratchsessionsid
'
,
'
permissions
'
,
function
(
err
,
value
)
{
if
(
err
)
return
dispatch
(
module
.
exports
.
setPermissionsError
(
err
));
value
=
value
||
{};
return
dispatch
(
module
.
exports
.
setPermissions
(
value
));
});
};
...
...
src/redux/token.js
View file @
d91bac94
...
...
@@ -27,6 +27,8 @@ module.exports.getToken = function () {
return
function
(
dispatch
)
{
jar
.
getUnsignedValue
(
'
scratchsessionsid
'
,
'
token
'
,
function
(
err
,
value
)
{
if
(
err
)
return
dispatch
(
module
.
exports
.
setTokenError
(
err
));
value
=
value
||
''
;
return
dispatch
(
module
.
exports
.
setToken
(
value
));
});
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment