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 09729f2 commit 068ba4c
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 @@ -1310,7 +1310,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 068ba4c

Please sign in to comment.