From 156d5696145f7a921dc4ff99b174db700733bc74 Mon Sep 17 00:00:00 2001 From: BlakeNeko Date: Wed, 26 Nov 2025 10:05:19 +0800 Subject: [PATCH] refactor: Update condition to use 'useTrailingComma' setting instead of 'addTrailingComma' --- web/js/auto-formatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/auto-formatter.js b/web/js/auto-formatter.js index b3e7a84..44dca74 100644 --- a/web/js/auto-formatter.js +++ b/web/js/auto-formatter.js @@ -101,7 +101,7 @@ export function formatPromptText(text) { let formattedLine = cleanedTags.join(', '); // Add a trailing comma and space if the setting is enabled and line contains valid tags - if (formattedLine.length > 0 && settingValues.addTrailingComma) { + if (formattedLine.length > 0 && settingValues.useTrailingComma) { formattedLine += ', '; }