fix users config in non-user based protocols

This commit is contained in:
Alireza Ahmadi
2024-05-23 11:59:28 +02:00
parent 988675a7a7
commit e3be3be9d9
+6 -4
View File
@@ -190,10 +190,12 @@ const saveModal = (data:Inbound, stats: boolean) => {
inbounds.value[modal.value.id] = data inbounds.value[modal.value.id] = data
} }
// Set users if (Object.hasOwn(data,'users')) {
data = buildInboundsUsers(data) // Set users
// Update links data = buildInboundsUsers(data)
if (Object.hasOwn(data,'users')) updateLinks(data) // Update links
updateLinks(data)
}
modal.value.visible = false modal.value.visible = false
} }
const updateLinks = (i: InboundWithUser) => { const updateLinks = (i: InboundWithUser) => {