Skip to content

Commit

Permalink
fix preview button not working after switching language
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanCoulsonCA committed May 30, 2024
1 parent 9d71d2c commit 3011fac
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 3011fac

Please sign in to comment.