Skip to content

Commit

Permalink
Merge pull request #306 from RyanCoulsonCA/fix-305
Browse files Browse the repository at this point in the history
fix language prop in preview component
  • Loading branch information
yileifeng authored May 27, 2024
2 parents 9a92b73 + fc7281a commit 9d71d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/editor/preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class StoryPreviewV extends Vue {
created(): void {
const uid = this.$route.params.uid as string;
const lang = this.$route.params.lang as string;
this.lang = this.$route.params.lang as string;
const JSZip = require('jszip');
const axios = require('axios').default;
Expand Down Expand Up @@ -114,7 +114,7 @@ export default class StoryPreviewV extends Vue {
rampConfig: rampConfigFolder
};
const filePath = `${uid}_${lang}.json`;
const filePath = `${uid}_${this.lang}.json`;
configZip
.file(filePath)
.async('string')
Expand Down

0 comments on commit 9d71d2c

Please sign in to comment.