File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ export default {
49
49
// parses script tag string for actions
50
50
parsingStringToAction (str ){
51
51
let action = [];
52
+ if (str .indexOf (' ...mapActions' ) === - 1 ){return action};
52
53
let trashedSlice = str .slice (str .lastIndexOf (' ...mapActions' )+ 15 );
53
54
let slice = trashedSlice .slice (0 , trashedSlice .indexOf (' ])' ));
54
55
let split = slice .split (' ' )
@@ -58,12 +59,13 @@ export default {
58
59
action .push (cleanStr)
59
60
}
60
61
}
61
- return action
62
+ return action;
62
63
},
63
64
64
65
// parses script tag string for state
65
66
parsingStringToState (str ){
66
67
let state = [];
68
+ if (str .indexOf (' ...mapState' ) === - 1 ){return state};
67
69
let trashedSlice = str .slice (str .lastIndexOf (' ...mapState' )+ 15 );
68
70
let slice = trashedSlice .slice (0 , trashedSlice .indexOf (' ])' ));
69
71
let split = slice .split (' ' )
You can’t perform that action at this time.
0 commit comments