Skip to content

Commit

Permalink
Add check for warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
viown committed Dec 17, 2024
1 parent 67b1e0e commit a88e0d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/apps/dashboard/routes/logs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ export const action = async ({ request }: ActionFunctionArgs) => {
const formData = await request.formData();
const { data: config } = await getConfigurationApi(api).getConfiguration();

config.EnableSlowResponseWarning = formData.get('EnableWarningMessage') === 'on';
const enableWarningMessage = formData.get('EnableWarningMessage');
if (enableWarningMessage) {
config.EnableSlowResponseWarning = formData.get('EnableWarningMessage') === 'on';
}

const responseTime = formData.get('SlowResponseTime');
if (responseTime) {
Expand Down

0 comments on commit a88e0d6

Please sign in to comment.