File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -626,6 +626,9 @@ const checkForTokens = async (token) => {
626
626
const settings = await siteSettings . find ( { } ) . toArray ( ) ;
627
627
const foundSettings = settings . find ( ( { tokens } ) => {
628
628
const pluginToken = tokens . find ( ( t ) => t . key === "readOnlyToken" ) ;
629
+ if ( ! pluginToken ?. value || ! token ) {
630
+ return false
631
+ }
629
632
return pluginToken ?. value === token ;
630
633
} ) ;
631
634
resolve ( foundSettings ) ;
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ const checkForTokens = async (token) => {
52
52
const settings = await siteSettings . find ( { } ) . toArray ( ) ;
53
53
const foundSettings = settings . find ( ( { tokens } ) => {
54
54
const pluginToken = tokens . find ( ( t ) => t . key === "pluginToken" ) ;
55
+ if ( ! pluginToken ?. value || ! token ) {
56
+ return false
57
+ }
55
58
return pluginToken ?. value === token ;
56
59
} ) ;
57
60
resolve ( foundSettings ) ;
You can’t perform that action at this time.
0 commit comments