mirror of
https://github.com/ianarawjo/ChainForge.git
synced 2025-03-15 00:36:29 +00:00
run prettier
This commit is contained in:
parent
5ee42f660e
commit
cf64cbc54b
@ -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}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user