Skip to content

Commit

Permalink
Merge pull request #308 from RyanCoulsonCA/fix-307-1
Browse files Browse the repository at this point in the history
fix preview button not working after switching language
  • Loading branch information
yileifeng authored Jun 5, 2024
2 parents ae0afce + 3011fac commit 9be198a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/editor/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export default class EditorV extends Vue {
*/
preview(): void {
// save current slide final changes before previewing product
if (this.$refs.slide !== undefined) {
if (this.$refs.slide != null && this.currentSlide !== '') {
(this.$refs.slide as SlideEditorV).saveChanges();
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/editor/slide-editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export default class SlideEditorV extends Vue {
saveChanges(): void {
if (
this.$refs.editor !== undefined &&
this.$refs.editor != null &&
typeof (this.$refs.editor as ImageEditorV | ChartEditorV | VideoEditorV | CustomEditorV).saveChanges ===
'function'
) {
Expand Down

0 comments on commit 9be198a

Please sign in to comment.