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.

fix: don't show clear button unless there is text

Brad Barbina61f6f53f64d
diff --git a/apps/erp/app/components/Agent/Agent.tsx b/apps/erp/app/components/Agent/Agent.tsx
index f32874ef3d..4b74409055 100644
--- a/apps/erp/app/components/Agent/Agent.tsx
+++ b/apps/erp/app/components/Agent/Agent.tsx
@@ -134,7 +134,7 @@ function ChatInput({
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
- {isInitial && (
+ {!isInitial && (
<Button
size="sm"
variant="secondary"
diff --git a/packages/database/supabase/functions/post-receipt/index.ts b/packages/database/supabase/functions/post-receipt/index.ts
index 1ee3e87e13..2286e4aaa4 100644
--- a/packages/database/supabase/functions/post-receipt/index.ts
+++ b/packages/database/supabase/functions/post-receipt/index.ts
@@ -1,4 +1,3 @@
-import "jsr:@supabase/functions-js/edge-runtime.d.ts";
import { serve } from "https://deno.land/[email protected]/http/server.ts";
import { format } from "https://deno.land/[email protected]/datetime/mod.ts";
import { nanoid } from "https://deno.land/x/[email protected]/mod.ts";