diff --git a/frontend/src/plugins/utils.ts b/frontend/src/plugins/utils.ts index 72f90e73..63f79c1d 100644 --- a/frontend/src/plugins/utils.ts +++ b/frontend/src/plugins/utils.ts @@ -76,8 +76,8 @@ export const FindDiff = { // Check if both objects are plain objects if (typeof obj1 === 'object' && typeof obj2 === 'object' && obj1 !== null && obj2 !== null) { - const keys1 = Object.keys(obj1) - const keys2 = Object.keys(obj2) + const keys1 = Object.keys(obj1).filter(key => obj1[key] !== undefined) + const keys2 = Object.keys(obj2).filter(key => obj2[key] !== undefined) if (keys1.length !== keys2.length) { return false diff --git a/frontend/src/views/Inbounds.vue b/frontend/src/views/Inbounds.vue index 01b4b64c..26fa9715 100644 --- a/frontend/src/views/Inbounds.vue +++ b/frontend/src/views/Inbounds.vue @@ -242,6 +242,7 @@ const saveModal = (data:Inbound, stats: boolean, tls_id: number, cData: any) => // Update tls preset if (tls_id>0) { tlsConfigs.value.findLast(t => t.id == tls_id).inbounds.push(data.tag) + tlsConfigs.value.sort() } if (Object.hasOwn(data,'users')) {