From 93ef5515cd4a7800aac3cafa6e2839c1a6df4a31 Mon Sep 17 00:00:00 2001 From: Tony Salomone <dadmobile@gmail.com> Date: Thu, 9 May 2024 16:50:21 -0400 Subject: [PATCH] Add condition to model load for database filename models. --- src/renderer/components/MainAppPanel.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/renderer/components/MainAppPanel.tsx b/src/renderer/components/MainAppPanel.tsx index 019f1c35..cdf064ff 100644 --- a/src/renderer/components/MainAppPanel.tsx +++ b/src/renderer/components/MainAppPanel.tsx @@ -48,6 +48,12 @@ export default function MainAppPanel({ // For most generated models this will be a path to a directory if (model.stored_in_filesystem) { model_filename = model.local_path; + + // If stored_in_filesystem isn't set but model_filename is then + // just take model_filename directly + // This is an imported model and this should hold a full path + } else if (model.json_data?.model_filename) { + model_filename = model.json_data.model_filename; } } -- GitLab