Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

items.filter is not a function #155

@hoodsy

Description

@hoodsy

When I begin typing, my options are shown nicely. But when I delete the line in my input while my component is loading, I get this error:

Uncaught TypeError: items.filter is not a functiongetFilteredItems @ Autocomplete.js:205
renderMenu @ Autocomplete.js:279
Autocomplete_render @ Autocomplete.js:358
_renderValidatedComponentWithoutOwnerOrContext @ ReactCompositeComponent.js:832
_renderValidatedComponent @ ReactCompositeComponent.js:859
_updateRenderedComponent @ ReactCompositeComponent.js:782
_performComponentUpdate @ ReactCompositeComponent.js:753
updateComponent @ ReactCompositeComponent.js:670
performUpdateIfNecessary @ ReactCompositeComponent.js:578
performUpdateIfNecessary @ ReactReconciler.js:163
runBatchedUpdates @ ReactUpdates.js:151
perform @ Transaction.js:138
perform @ Transaction.js:138
flushBatchedUpdates @ ReactUpdates.js:173
closeAll @ Transaction.js:204
perform @ Transaction.js:151
batchedUpdates @ ReactDefaultBatchingStrategy.js:63
batchedUpdates @ ReactUpdates.js:98
dispatchEvent @ ReactEventListener.js:150

I've got a debounced search hitting an API, and it feels like this error pops up after my search is fired and before the results are rendered, and I delete my search value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions