Don't show "duplicate" warning when refreshing auth

This commit is contained in:
Matthias 2023-07-09 11:58:51 +02:00
parent 8c40d3bd48
commit f5725ca2c6

View File

@ -123,7 +123,7 @@ const emitLoginResult = (value: boolean) => {
const urlDuplicate = computed<boolean>(() => { const urlDuplicate = computed<boolean>(() => {
const bots = Object.values(botStore.availableBots).find((bot) => bot.botUrl === auth.value.url); const bots = Object.values(botStore.availableBots).find((bot) => bot.botUrl === auth.value.url);
return bots !== undefined; return !botEdit.value && bots !== undefined;
}); });
const checkFormValidity = () => { const checkFormValidity = () => {