Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorniaky committed Sep 9, 2023
1 parent e2ecf9f commit f389084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discloud.app/src/managers/CachedManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default abstract class CachedManager<T> extends DataManager<T> {
}

protected _clean(data: { id: string }[]) {
if (!data.length)
if (!data?.length)
return this.#cache.clear();

for (const id of this.#cache.keys()) {
Expand Down

0 comments on commit f389084

Please sign in to comment.