Skip to content

Commit

Permalink
Refs #19743: Add load model check for empty filter
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso committed Nov 7, 2023
1 parent ea8a80f commit dae0b4e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion qml/DomainGraphLayout.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,14 @@ Item
// Obtain given domain id graph JSON model
function load_model()
{
filter_model_by_topic ("")
if (filtered_topics_.length > 0)
{
filter_model_by_topic (filtered_topics_[filtered_topics_.length-1])
}
else
{
filter_model_by_topic ("")
}
}

// Filter model by topic
Expand Down

0 comments on commit dae0b4e

Please sign in to comment.