Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

refactor: remove console.logs

Brad Barbin9e4cdc90a5f2
diff --git a/apps/erp/app/routes/api+/purchasing.supplier-processes.$processId.ts b/apps/erp/app/routes/api+/purchasing.supplier-processes.$processId.ts
index dc8bfc1b74..9d1a80d6d9 100644
--- a/apps/erp/app/routes/api+/purchasing.supplier-processes.$processId.ts
+++ b/apps/erp/app/routes/api+/purchasing.supplier-processes.$processId.ts
@@ -1,7 +1,7 @@
import { error } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
-import { ClientLoaderFunctionArgs } from "@remix-run/react";
+import type { ClientLoaderFunctionArgs } from "@remix-run/react";
import type { LoaderFunctionArgs, SerializeFrom } from "@vercel/remix";
import { json } from "@vercel/remix";
import { getSupplierProcessesByProcess } from "~/modules/purchasing";
@@ -50,8 +50,6 @@ export async function clientLoader({
const data =
window?.clientCache?.getQueryData<SerializeFrom<typeof loader>>(queryKey);
- console.log("clientLoader", queryKey, data);
-
if (!data) {
const serverData = await serverLoader<typeof loader>();
window?.clientCache?.setQueryData(queryKey, serverData);