Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 7da329b

Browse files
committed
fix(dashboard): roallback & compore bug
1 parent 679335e commit 7da329b

File tree

1 file changed

+3
-3
lines changed
  • src/containers/thread/DashboardThread

1 file changed

+3
-3
lines changed

src/containers/thread/DashboardThread/store.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ const DashboardThread = T.model('DashboardThread', {
160160
const widgetsSizeTouched = _isChanged('widgetsSize')
161161

162162
const widgetsThreadsTouched = !equals(
163-
toJS(slf.widgetsThreads),
164-
toJS(init.widgetsThreads),
163+
toJS(slf.widgetsThreads).sort(),
164+
toJS(init.widgetsThreads).sort(),
165165
)
166166

167167
return {
@@ -299,7 +299,7 @@ const DashboardThread = T.model('DashboardThread', {
299299
return
300300
}
301301

302-
const initValue = slf.initSettings[field]
302+
const initValue = toJS(slf.initSettings[field])
303303

304304
// @ts-ignore
305305
self[field] = initValue

0 commit comments

Comments
 (0)