From 301f20612ff64015b3d402ca0ca236bdaaf462f3 Mon Sep 17 00:00:00 2001 From: Dusan Vojacek Date: Sun, 19 Apr 2026 21:16:26 +0200 Subject: [PATCH] fix drop tem[porary table --- db/routines/R__063_fn_load_planning_slots_full.sql | 2 +- frontend/src/pages/Planning.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/routines/R__063_fn_load_planning_slots_full.sql b/db/routines/R__063_fn_load_planning_slots_full.sql index e899f6e..4cbbe51 100644 --- a/db/routines/R__063_fn_load_planning_slots_full.sql +++ b/db/routines/R__063_fn_load_planning_slots_full.sql @@ -21,7 +21,7 @@ returns table ( allow_discharge_export boolean ) language plpgsql -stable +volatile as $fn$ declare v_charge_buf numeric; diff --git a/frontend/src/pages/Planning.tsx b/frontend/src/pages/Planning.tsx index 5cbc8c2..aa6d386 100644 --- a/frontend/src/pages/Planning.tsx +++ b/frontend/src/pages/Planning.tsx @@ -569,7 +569,7 @@ export default function Planning() { await postRunPlan(siteId, 'rolling') await load() } catch (e) { - setError(e instanceof Error ? e.message : 'Přepočet selhal') + setError(axiosDetail(e) || 'Přepočet selhal') } finally { setReplanning(false) }