This commit is contained in:
seb
2026-08-05 20:15:39 +02:00
parent ff79d5b92c
commit caf08a3262
3 changed files with 76 additions and 14 deletions

View File

@@ -245,6 +245,13 @@ export class StorageManager extends ApiClient {
);
}
/** Patch local article detail name if already cached; no-op otherwise. */
setArticleName(sku, name) {
const current = this.#articlesBySku.get(String(sku));
if (!current) return;
this.setArticle({ ...current, name });
}
/** Drop local articleIndex if loaded (forces reload on next read). */
clearArticleIndex() {
if (!this.#articleIndexCache.value) return;