jeancroy / FuzzySearch

:mag: Fast autocomplete suggestion engine using approximate string matching
MIT License
194 stars 32 forks source link

Fix Uncaught (in promise) TypeError: Cannot read properties of undefi… #42

Open wucdbm opened 1 year ago

wucdbm commented 1 year ago

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'join') at FuzzySearch._searchIndex (FuzzySearch.min.js:1539:39) at FuzzySearch.search (FuzzySearch.min.js:1394:35)

Data at hand when it goes KABOOM below

Unfortunately, I have no clue what this code does and why, I just figured this fixes it

[
    [],
    [],
    [
        [
            "biletbank",
            "[internal",
            "use",
            "only]"
        ]
    ]
]