Remove stale Picture Agent remote template state
This commit is contained in:
@@ -451,9 +451,7 @@ export default function PictureAgent() {
|
|||||||
if (nextTemplates.length) {
|
if (nextTemplates.length) {
|
||||||
setTemplates(nextTemplates);
|
setTemplates(nextTemplates);
|
||||||
}
|
}
|
||||||
setTemplatesError(templatePayload?.fallback && templatePayload?.remote?.message
|
setTemplatesError('');
|
||||||
? String(templatePayload.remote.message)
|
|
||||||
: '');
|
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
if (!ignore) setTemplatesError(err?.message || '远程模板加载失败,已使用本地模板');
|
if (!ignore) setTemplatesError(err?.message || '远程模板加载失败,已使用本地模板');
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user