@saltcorn/workflow-editor 1.6.0-alpha.13 → 1.6.0-alpha.14

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": "@saltcorn/workflow-editor",
3
- "version": "1.6.0-alpha.13",
3
+ "version": "1.6.0-alpha.14",
4
4
  "description": "React Flow-based workflow editor for Saltcorn",
5
5
  "main": "index.js",
6
6
  "homepage": "https://saltcorn.com",
@@ -792,21 +792,20 @@ const StepDrawer = ({
792
792
  <button className="btn btn-secondary" onClick={onClose}>
793
793
  Close
794
794
  </button>
795
- {!modal.stepId && (
796
- <button
797
- className="btn btn-primary"
798
- onClick={() =>
799
- innerRef.current
800
- ?.querySelector("form")
801
- ?.dispatchEvent(
802
- new Event("submit", { cancelable: true, bubbles: true })
803
- )
804
- }
805
- disabled={submitting}
806
- >
807
- {submitting ? "Saving..." : "Save"}
808
- </button>
809
- )}
795
+
796
+ <button
797
+ className="btn btn-primary"
798
+ onClick={() =>
799
+ innerRef.current
800
+ ?.querySelector("form")
801
+ ?.dispatchEvent(
802
+ new Event("submit", { cancelable: true, bubbles: true })
803
+ )
804
+ }
805
+ disabled={submitting}
806
+ >
807
+ {submitting ? "Saving..." : "Save"}
808
+ </button>
810
809
  </div>
811
810
  </>
812
811
  ) : null}
@@ -1517,7 +1516,7 @@ const WorkflowEditor = ({ data }) => {
1517
1516
  autoSavingRef.current = true;
1518
1517
  try {
1519
1518
  await submitStepForm(formEl, { closeOnSuccess: false });
1520
- } catch (err) {
1519
+ } catch (err) {
1521
1520
  setError(err.message);
1522
1521
  } finally {
1523
1522
  autoSavingRef.current = false;