Skip to content
Snippets Groups Projects
Commit 93ef5515 authored by Tony Salomone's avatar Tony Salomone
Browse files

Add condition to model load for database filename models.

parent fef4f87b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment