File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/compass-query-bar/src/components Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ import type {
3939 FavoriteQuery ,
4040 RecentQuery ,
4141} from '@mongodb-js/my-queries-storage' ;
42- import _ from 'lodash' ;
4342import type { QueryOptionOfTypeDocument } from '../constants/query-option-definition' ;
4443
4544const editorContainerStyles = css ( {
@@ -321,8 +320,8 @@ export function getOptionBasedQueries(
321320 // - its an `update` query
322321 // - its a duplicate
323322 . filter ( ( query , i , arr ) => {
324- const queryIsUpdate = _ . has ( query . queryProperties , 'update' ) ;
325- const queryIsEmpty = _ . isEmpty ( query . queryProperties ) ;
323+ const queryIsUpdate = 'update' in query . queryProperties ;
324+ const queryIsEmpty = Object . keys ( query . queryProperties ) . length === 0 ;
326325 if ( queryIsEmpty || queryIsUpdate ) {
327326 return false ;
328327 }
You can’t perform that action at this time.
0 commit comments