Skip to content

Commit ee1e6d8

Browse files
committed
remove usage of lodash
1 parent 2e9f332 commit ee1e6d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/compass-query-bar/src/components/option-editor.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import type {
3939
FavoriteQuery,
4040
RecentQuery,
4141
} from '@mongodb-js/my-queries-storage';
42-
import _ from 'lodash';
4342
import type { QueryOptionOfTypeDocument } from '../constants/query-option-definition';
4443

4544
const 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
}

0 commit comments

Comments
 (0)