From 91b3870f1c73bff525f95f943dae9eafdf9e5a1a Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Sat, 20 Jun 2026 13:40:19 +0700 Subject: [PATCH] fix: improve error handling in API fetch function to manage non-JSON responses and session expiration --- .../admin/manage/orders/OrderPosForm.vue | 5 +-- resources/js/lib/api.ts | 31 ++++++++++++++----- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/resources/js/components/admin/manage/orders/OrderPosForm.vue b/resources/js/components/admin/manage/orders/OrderPosForm.vue index 4d6148e..1c652d3 100644 --- a/resources/js/components/admin/manage/orders/OrderPosForm.vue +++ b/resources/js/components/admin/manage/orders/OrderPosForm.vue @@ -708,13 +708,10 @@ function submit() { Marketing