From 4685e7e60374f79abe0f2f0297a41a121f5fd459 Mon Sep 17 00:00:00 2001 From: lilbit-prun <225798227+lilbit-prun@users.noreply.github.com> Date: Tue, 19 May 2026 04:45:32 +0000 Subject: [PATCH] Don't auto-optimize shared plans When I view https://prunplanner.org/shared/3b26959f-f281-41f6-bc12-343957c67e36 unlogged, I see 503/500 area used which isn't what my saved plan has. This is because the auto-optimized habs checkbox is set. I think it's unnecessary to check props.disabled in PlanView.vue for the planPerfs variable because it's only used for the binding of the value of the auto-optimized hab's checkbox. I think we want it checked for unsaved plans otherwise it uses the plan's settings. Before it was set to true for unsaved plans and shared plans (disabled == shared plans if you trace it through to usePlanningDataLoader) --- src/views/PlanView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/PlanView.vue b/src/views/PlanView.vue index 4a917ef2..1e3bf918 100644 --- a/src/views/PlanView.vue +++ b/src/views/PlanView.vue @@ -175,7 +175,7 @@ // Plan Preferences const planPrefs = computed | null>( () => { - return !props.disabled && props.planData.uuid !== undefined + return props.planData.uuid !== undefined ? usePlanPreferences(props.planData.uuid) : null; }