Merge branch 'Kartik_Bug#805' of https://git.marcoaiot.com/admin/marco.pms.web into Kartik_Bug#805

This commit is contained in:
Kartik Sharma 2025-07-26 11:45:25 +05:30
commit 029b8300ff

View File

@ -85,9 +85,7 @@ const NotesDirectory = ({
} catch (error) { } catch (error) {
setIsSubmitting(false); setIsSubmitting(false);
const msg = const msg =
error.response?.data?.message || error.response?.data?.message || error.message || "Error occurred during API calling";
error.message ||
"Error occurred during API calling";
showToast(msg, "error"); showToast(msg, "error");
} }
}; };
@ -197,7 +195,7 @@ const NotesDirectory = ({
</div> </div>
)} )}
<div className=" justify-content-start px-1 mt-1"> <div className="justify-content-start px-1 mt-1">
{isLoading && ( {isLoading && (
<div className="text-center"> <div className="text-center">
{" "} {" "}