Skip to content

Commit

Permalink
Run vuex strict mode only while debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jun 5, 2024
1 parent cbea9aa commit b49a998
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"STAC_BROWSER_VERSION": "readonly",
"CONFIG_PATH": "readonly",
"CONFIG_CLI": "readonly",
"require": "readonly"
"require": "readonly",
"process": "readonly"
},
"extends": [
"plugin:vue/strongly-recommended",
Expand Down Expand Up @@ -41,4 +42,4 @@
"vue/this-in-template": "error",
"vue/match-component-file-name": "error"
}
}
}
2 changes: 1 addition & 1 deletion src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function getStore(config, router) {
});

return new Vuex.Store({
strict: true,
strict: process.env.NODE_ENV !== 'production',
state: Object.assign({}, config, localDefaults(), catalogDefaults(), {
// Global settings
database: {}, // STAC object, Error object or Loading object or Promise (when loading)
Expand Down

0 comments on commit b49a998

Please sign in to comment.