@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.mjs
CHANGED
|
@@ -11257,6 +11257,7 @@ var createUploadInputComponent = (uploadInputProps, updateComponent) => {
|
|
|
11257
11257
|
draft.persistedState.lastSubmitted = null;
|
|
11258
11258
|
draft.persistedState.submission = Promise.resolve(null);
|
|
11259
11259
|
draft.errors = [];
|
|
11260
|
+
draft.value = null;
|
|
11260
11261
|
});
|
|
11261
11262
|
throw error;
|
|
11262
11263
|
});
|
|
@@ -13704,7 +13705,20 @@ function useDynamicFlowCore(props) {
|
|
|
13704
13705
|
const genericErrorMessage = getErrorMessageFunctions().genericErrorWithRetry();
|
|
13705
13706
|
const { errors = { error: genericErrorMessage } } = command.body;
|
|
13706
13707
|
if (stepRef.current) {
|
|
13707
|
-
initialiseWithStep(
|
|
13708
|
+
initialiseWithStep(
|
|
13709
|
+
__spreadProps(__spreadValues({}, stepRef.current), {
|
|
13710
|
+
// the existing step
|
|
13711
|
+
errors,
|
|
13712
|
+
// but with the new errors
|
|
13713
|
+
model,
|
|
13714
|
+
// and the model that was submitted
|
|
13715
|
+
polling: void 0,
|
|
13716
|
+
// and no polling, to avoid restarting it
|
|
13717
|
+
external: void 0
|
|
13718
|
+
// and no external, to avoid retriggering it
|
|
13719
|
+
}),
|
|
13720
|
+
etagRef.current
|
|
13721
|
+
);
|
|
13708
13722
|
} else {
|
|
13709
13723
|
closeWithError(new Error("Initial request failed"), {}, command.statusCode);
|
|
13710
13724
|
}
|