run prettier

This commit is contained in:
Ian Arawjo 2024-03-30 20:27:42 -04:00
parent 5ee42f660e
commit cf64cbc54b
3 changed files with 9 additions and 8 deletions

View File

@ -1095,7 +1095,11 @@ Soft failing by replacing undefined with empty strings.`,
);
return (
<BaseNode classNames="prompt-node" nodeId={id} contextMenuExts={customContextMenuItems}>
<BaseNode
classNames="prompt-node"
nodeId={id}
contextMenuExts={customContextMenuItems}
>
<NodeLabel
title={data.title || node_default_title}
nodeId={id}

View File

@ -1378,10 +1378,9 @@ export async function clearCachedResponses(id: string): Promise<boolean> {
console.error(`Did not find cache data for id ${id}`);
return false;
}
// Clear all cache items related to 'id'
for (const k of get_cache_keys_related_to_id(id, true))
StorageCache.clear(k);
for (const k of get_cache_keys_related_to_id(id, true)) StorageCache.clear(k);
return true;
}

View File

@ -62,10 +62,8 @@ export default class StorageCache {
}
private clearCache(key?: string): void {
if (key === undefined)
this.data = {};
else if (key in this.data)
delete this.data[key];
if (key === undefined) this.data = {};
else if (key in this.data) delete this.data[key];
}
/**