@wise/dynamic-flow-client 3.28.8-experimental-2b1f107 → 3.28.8-experimental-44c10c9
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 +8 -1
- package/build/main.min.js +1 -1
- package/build/main.mjs +8 -1
- package/package.json +1 -1
package/build/main.mjs
CHANGED
|
@@ -13591,7 +13591,14 @@ function useDynamicFlowCore(props) {
|
|
|
13591
13591
|
const onBack = (action) => {
|
|
13592
13592
|
if (action) {
|
|
13593
13593
|
return () => {
|
|
13594
|
-
|
|
13594
|
+
onAction(__spreadProps(__spreadValues({}, action), { skipValidation: true })).then(() => {
|
|
13595
|
+
setStepStack((value) => {
|
|
13596
|
+
const newStepStack = [...value.slice(0, -1), ...value.slice(-1)];
|
|
13597
|
+
stepComponentRef.current = newStepStack[newStepStack.length - 1];
|
|
13598
|
+
return newStepStack;
|
|
13599
|
+
});
|
|
13600
|
+
}).catch(() => {
|
|
13601
|
+
});
|
|
13595
13602
|
};
|
|
13596
13603
|
}
|
|
13597
13604
|
if (nativeBack) {
|