mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-21 07:28:06 -05:00
It was possible to clear the search term while a debounced setSearchTerm is still pending. This resulted in the gallery getting out of sync w/ the search term. To fix this, we need to lift the state up a bit and cancel any pending debounced setSearchTerm calls when closing the search or clearing the search term box.