forked from MapComplete/MapComplete
Refactoring: move method
This commit is contained in:
parent
a2ad13dd50
commit
b8a0fbe662
15 changed files with 31 additions and 44 deletions
|
|
@ -159,7 +159,7 @@ export class ChangesetHandler {
|
|||
|
||||
extraMetaTags = [...extraMetaTags, ...this.defaultChangesetTags()]
|
||||
extraMetaTags = ChangesetHandler.removeDuplicateMetaTags(extraMetaTags)
|
||||
if (this.userDetails.data.csCount == 0) {
|
||||
if (this.userDetails.data?.csCount == 0) {
|
||||
// The user became a contributor!
|
||||
this.userDetails.data.csCount = 1
|
||||
this.userDetails.ping()
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
|
|||
import LayerState from "../State/LayerState"
|
||||
import ThemeConfig from "../../Models/ThemeConfig/ThemeConfig"
|
||||
import { Lists } from "../../Utils/Lists"
|
||||
import { Strings } from "../../Utils/Strings"
|
||||
|
||||
export type FilterSearchResult = {
|
||||
option: FilterConfigOption
|
||||
|
|
@ -30,7 +31,7 @@ export default class FilterSearch {
|
|||
const queries = query
|
||||
.split(" ")
|
||||
.map((query) => {
|
||||
if (!Utils.isEmoji(query)) {
|
||||
if (!Strings.isEmoji(query)) {
|
||||
return Utils.simplifyStringForSearch(query)
|
||||
}
|
||||
return query
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue