File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
public/components/Flyout/flyouts/components Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export default class AlertsDashboardFlyoutComponent extends Component {
121
121
} ) ;
122
122
}
123
123
124
- componentDidUpdate ( prevProps , prevState ) {
124
+ componentDidUpdate ( _prevProps , prevState ) {
125
125
const prevQuery = getQueryObjectFromState ( prevState ) ;
126
126
const currQuery = getQueryObjectFromState ( this . state ) ;
127
127
if ( ! _ . isEqual ( prevQuery , currQuery ) ) {
@@ -146,10 +146,11 @@ export default class AlertsDashboardFlyoutComponent extends Component {
146
146
monitorIds
147
147
) ;
148
148
}
149
- const { monitorType } = this . state ;
149
+ const { monitorType, commentsEnabled , tabId } = this . state ;
150
150
if (
151
- [ MONITOR_TYPE . DOC_LEVEL , MONITOR_TYPE . COMPOSITE_LEVEL ] . includes ( monitorType ) &&
152
- ! _ . isEqual ( prevState . selectedItems , this . state . selectedItems )
151
+ ( [ MONITOR_TYPE . DOC_LEVEL , MONITOR_TYPE . COMPOSITE_LEVEL ] . includes ( monitorType ) &&
152
+ ! _ . isEqual ( prevState . selectedItems , this . state . selectedItems ) ) ||
153
+ ( tabId === TABLE_TAB_IDS . ALERTS . id && commentsEnabled !== prevState . commentsEnabled )
153
154
)
154
155
this . setState ( { tabContent : this . renderAlertsTable ( ) } ) ;
155
156
}
You can’t perform that action at this time.
0 commit comments