cozy / cozy-client

Document store and React components for the Cozy platform
MIT License
13 stars 13 forks source link

[VO-924] fix(resetQuery): Return null when the query is not found #1503

Closed cballevre closed 3 months ago

cballevre commented 3 months ago

When a query is reset, it may not yet be initialized. This can happens when you want to reset a query for the destination folder of a restored file but the view of this folder has never been accessed. By returning null, this allows the developer to choose whether he really wants to initialise it or take some other action.