Skip to content

Commit 1c6cc0c

Browse files
committed
Merge pull request #209 from mamute/fix-lodash-find-syntax-on-meta-tags-manager
fix lodash find syntax to return correct csrf-token content
2 parents f587990 + 84ebab4 commit 1c6cc0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/app/libs/metaTagsManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
* @returns {String} - CSRF Token.
99
*/
1010
getCSRFToken() {
11-
const token = _.find(document.querySelectorAll('meta'), 'name', 'csrf-token');
11+
const token = _.find(document.querySelectorAll('meta'), ['name', 'csrf-token']);
1212
return token ? token.content : null;
1313
},
1414

0 commit comments

Comments
 (0)