Skip to content

Commit

Permalink
Redirect was undefined (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-t-frost authored Sep 8, 2020
1 parent 1f9fb5f commit 59869af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-ld",
"version": "0.1.4",
"version": "0.1.5",
"description": "A Vue.js wrapper for the LaunchDarkly SDK for Browser JavaScript",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
Expand Down
2 changes: 1 addition & 1 deletion src/mixins/ldRedirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default (requiredFeatureFlag, to) => {
}
},
},
created() {
mounted() {
if (this.$ld.ready && !this.$ld.flags[requiredFeatureFlag || this.requiredFeatureFlag]) {
this.$router.push(to == null ? this.ldRedirectTo : to);
} else if (!this.ldReady) {
Expand Down

0 comments on commit 59869af

Please sign in to comment.