@novely/core 0.46.1 → 0.46.2

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/dist/index.js CHANGED
@@ -688,10 +688,8 @@ var createUseStackFunction = (renderer) => {
688
688
  stack[stack.length - 1] = value;
689
689
  },
690
690
  back() {
691
- if (stack.length > 1) {
692
- stack.previous = stack.pop();
693
- ctx.meta.goingBack = true;
694
- }
691
+ stack.previous = stack.length > 1 ? stack.pop() : this.value;
692
+ ctx.meta.goingBack = true;
695
693
  },
696
694
  push(value) {
697
695
  stack.push(value);