mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
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:
1 parent
cbf07416cd
commit
94b47da859
1 file changed
+2
-1
@@ -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 ?? "";
|
||||
|
||||
Reference in new issue
Block a user