From aa1acf8d70c58e1d435c3fc3a96584a0997c0cb1 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 24 Dec 2022 10:24:14 -0600 Subject: [PATCH] Fixed go back button sometimes appearing erroneously --- src/components/Layer.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/Layer.vue b/src/components/Layer.vue index fd7c4e4..f4f11b8 100644 --- a/src/components/Layer.vue +++ b/src/components/Layer.vue @@ -26,11 +26,10 @@ import projInfo from "data/projInfo.json"; import type { CoercableComponent } from "features/feature"; import type { FeatureNode } from "game/layers"; -import type { Persistent } from "game/persistence"; import player from "game/player"; -import { computeComponent, computeOptionalComponent, processedPropType, wrapRef } from "util/vue"; +import { computeComponent, computeOptionalComponent, processedPropType, unwrapRef } from "util/vue"; import type { PropType, Ref } from "vue"; -import { computed, defineComponent, nextTick, toRefs, unref, watch } from "vue"; +import { computed, defineComponent, toRefs, unref } from "vue"; import Context from "./Context.vue"; export default defineComponent({ @@ -67,7 +66,7 @@ export default defineComponent({ const component = computeComponent(display); const minimizedComponent = computeOptionalComponent(minimizedDisplay); const showGoBack = computed( - () => projInfo.allowGoBack && index.value > 0 && !minimized.value + () => projInfo.allowGoBack && index.value > 0 && !unwrapRef(minimized) ); function goBack() {