From 5cc3791f7993e2c2f884f8b36d38bc79985798c6 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Tue, 23 Jul 2024 16:24:56 +0200 Subject: [PATCH] fix api call error --- frontend/src/plugins/httputil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/plugins/httputil.ts b/frontend/src/plugins/httputil.ts index 9aa7ca9..6c5218d 100644 --- a/frontend/src/plugins/httputil.ts +++ b/frontend/src/plugins/httputil.ts @@ -57,7 +57,7 @@ function _respToMsg(resp: any): Msg { } function isMsg(obj: any): obj is Msg { - return 'success' in obj && 'msg' in obj && 'obj' in obj + return Object.hasOwn(obj,'success') && Object.hasOwn(obj,'msg') && Object.hasOwn(obj, 'obj') } const HttpUtils = {