From 4540e47055fd6d9b930fa456cbd9303b54065b30 Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Mon, 15 Sep 2025 18:07:22 +0800 Subject: [PATCH] refactor(baseModelApi): update example images path retrieval to use state settings --- static/js/api/baseModelApi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/api/baseModelApi.js b/static/js/api/baseModelApi.js index 2a7c058d..0e77823c 100644 --- a/static/js/api/baseModelApi.js +++ b/static/js/api/baseModelApi.js @@ -938,8 +938,8 @@ export class BaseModelApiClient { ws.onerror = reject; }); - // Get the output directory from storage - const outputDir = getStorageItem('example_images_path', ''); + // Get the output directory from state + const outputDir = state.global?.settings?.example_images_path || ''; if (!outputDir) { throw new Error('Please set the example images path in the settings first.'); }