Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7442af6

Browse filesBrowse files
author
魏无羡
committed
fix:Table utils deepCompare function
1 parent 173e2dc commit 7442af6
Copy full SHA for 7442af6

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎src/table/utils.js‎

Copy file name to clipboardExpand all lines: src/table/utils.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ const deepCompare = (obj1: any, obj2: any): boolean => {
151151
}
152152
for (let key in obj1) {
153153
if (deepCompare(obj1[key], obj2[key])) {
154-
return true
154+
return false
155155
}
156156
}
157157
return true
158158
}
159-
return obj1 !== obj2
159+
return !Object(obj1,obj2)
160160
}
161161

162162
export {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.