Skip to content

Commit

Permalink
Fix some eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Aug 24, 2022
1 parent 061bc19 commit 322dde2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main/js/bundles/dn_searchlayers/SearchLayersStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class SearchLayersStore extends SyncInMemoryStore {
return layers.flatten(item => item.layers || item.sublayers);
}

query(query = {}, options = {}) {
query(query = {}) {
const mapWidgetModel = this._mapWidgetModel;
const layers = mapWidgetModel.map.layers;
const flattenLayers = this._getFlattenLayers(layers);
Expand All @@ -43,8 +43,8 @@ export default class SearchLayersStore extends SyncInMemoryStore {
const idContainsSearchString = layer.id.toString().includes(searchString);
const descriptionContainsSearchString = layer.description?.toLowerCase().includes(searchString.toLowerCase());
const metadataContainsSearchString = layer.metadata?.toLowerCase().includes(searchString);
const copyrightContainsSearchString = layer.copyright?.toLowerCase().includes(searchString)
const tagsContainsSearchString = layer.tags?.toString()?.toLowerCase().includes(searchString)
const copyrightContainsSearchString = layer.copyright?.toLowerCase().includes(searchString);
const tagsContainsSearchString = layer.tags?.toString()?.toLowerCase().includes(searchString);

const visibleInToc = layer.listMode === "show";

Expand All @@ -56,7 +56,7 @@ export default class SearchLayersStore extends SyncInMemoryStore {
return QueryResults(results.toArray());
}

get(uid, options = {}) {
get(uid) {
const mapWidgetModel = this._mapWidgetModel;
const layers = mapWidgetModel.map.layers;
const flattenLayers = this._getFlattenLayers(layers);
Expand Down
2 changes: 1 addition & 1 deletion src/main/js/bundles/dn_searchlayers/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
import ".";
import "./SearchLayersStore";
import "./ActivateLayerAction";
import "ct/tools/Tool"
import "ct/tools/Tool";

0 comments on commit 322dde2

Please sign in to comment.