Skip to content

Commit

Permalink
fix change detection
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed Jul 4, 2024
1 parent e1aaa3d commit cf6b61f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/plugins/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions frontend/src/views/Inbounds.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit cf6b61f

Please sign in to comment.