@versa_ai/vmml-editor 1.0.50 → 1.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versa_ai/vmml-editor",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "module": "dist/index.mjs",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",
package/src/index.tsx CHANGED
@@ -125,13 +125,13 @@ const EditorFn = <Schema extends AnyZodObject, Props>(
125
125
  };
126
126
 
127
127
  const onControlsClick = () => {
128
+ setPreviewState(true);
128
129
  if (previewState) {
129
130
  const { current }: any = vmmlPlayerRef;
130
131
  current.unmute();
131
132
  current.play();
132
133
  } else {
133
134
  setMenuState("");
134
- setPreviewState(true);
135
135
  }
136
136
  }
137
137