@wise/dynamic-flow-client 3.29.0 → 3.29.1
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/build/main.js +15 -1
- package/build/main.min.js +1 -1
- package/build/main.mjs +15 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -11275,6 +11275,7 @@ var createUploadInputComponent = (uploadInputProps, updateComponent) => {
|
|
|
11275
11275
|
draft.persistedState.lastSubmitted = null;
|
|
11276
11276
|
draft.persistedState.submission = Promise.resolve(null);
|
|
11277
11277
|
draft.errors = [];
|
|
11278
|
+
draft.value = null;
|
|
11278
11279
|
});
|
|
11279
11280
|
throw error;
|
|
11280
11281
|
});
|
|
@@ -13722,7 +13723,20 @@ function useDynamicFlowCore(props) {
|
|
|
13722
13723
|
const genericErrorMessage = getErrorMessageFunctions().genericErrorWithRetry();
|
|
13723
13724
|
const { errors = { error: genericErrorMessage } } = command.body;
|
|
13724
13725
|
if (stepRef.current) {
|
|
13725
|
-
initialiseWithStep(
|
|
13726
|
+
initialiseWithStep(
|
|
13727
|
+
__spreadProps(__spreadValues({}, stepRef.current), {
|
|
13728
|
+
// the existing step
|
|
13729
|
+
errors,
|
|
13730
|
+
// but with the new errors
|
|
13731
|
+
model,
|
|
13732
|
+
// and the model that was submitted
|
|
13733
|
+
polling: void 0,
|
|
13734
|
+
// and no polling, to avoid restarting it
|
|
13735
|
+
external: void 0
|
|
13736
|
+
// and no external, to avoid retriggering it
|
|
13737
|
+
}),
|
|
13738
|
+
etagRef.current
|
|
13739
|
+
);
|
|
13726
13740
|
} else {
|
|
13727
13741
|
closeWithError(new Error("Initial request failed"), {}, command.statusCode);
|
|
13728
13742
|
}
|