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: clear feedback on submit

Brad Barbin7e003bb5d38c
diff --git a/apps/carbon/app/components/Layout/Topbar/Feedback.tsx b/apps/carbon/app/components/Layout/Topbar/Feedback.tsx
index 078db2edd4..0033427a29 100644
--- a/apps/carbon/app/components/Layout/Topbar/Feedback.tsx
+++ b/apps/carbon/app/components/Layout/Topbar/Feedback.tsx
@@ -92,6 +92,10 @@ const Feedback = () => {
action={path.to.feedback}
validator={feedbackValidator}
fetcher={fetcher}
+ onSubmit={() => {
+ setFeedback("");
+ setAttachment(null);
+ }}
>
<Hidden name="location" value={location.pathname} />
<Hidden name="attachmentPath" value={attachment?.path ?? ""} />
diff --git a/packages/auth/src/config/env.ts b/packages/auth/src/config/env.ts
index 7178b2c597..59eeef0ec6 100644
--- a/packages/auth/src/config/env.ts
+++ b/packages/auth/src/config/env.ts
@@ -71,7 +71,9 @@ export const EXCHANGE_RATES_API_KEY = getEnv("EXCHANGE_RATES_API_KEY", {
isRequired: false,
isSecret: true,
});
-export const SLACK_BOT_TOKEN = getEnv("SLACK_BOT_TOKEN");
+export const SLACK_BOT_TOKEN = getEnv("SLACK_BOT_TOKEN", {
+ isRequired: false,
+});
export const SUPABASE_SERVICE_ROLE = getEnv("SUPABASE_SERVICE_ROLE");
export const SESSION_SECRET = getEnv("SESSION_SECRET");
export const SESSION_KEY = "auth";