fix(console): retain legacy discord log targets

A stored log target without platform means Discord.
Keep that meaning in the editor instead of clearing the target.
This commit is contained in:
翅膀 committed 2026-10-23 23:23:56 +08:00
1 parent cbf07416cd
commit 94b47da859
1 file changed
+2 -1
+2 -1
View File
@@ -330,7 +330,8 @@ watch(
form.emoji = g?.emoji ?? true;
form.forgeSources = (g?.forgeSources ?? []).map((s) => ({ ...s }));
form.lang = g?.lang ?? "";
form.logPlatform = lt?.platform ?? "";
// A stored target without a platform is a Discord one (as the server reads it).
form.logPlatform = lt ? (lt.platform ?? "discord") : "";
form.logChannelId = lt?.channelId ?? "";
form.logThreadId = lt?.threadId ?? "";
form.logChatId = lt?.chatId ?? "";