Skip to content

Commit

Permalink
Fix bug on GPML support
Browse files Browse the repository at this point in the history
  • Loading branch information
hasanbalci committed Feb 2, 2024
1 parent 8f82435 commit b61433a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/js/app-utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -2582,7 +2582,8 @@ appUtilities.launchWithModelFile = function() {

if (fileExtension === "gpml") {
chiseInstance.loadGpml(fileToLoad, success = async function (data) {
if (cyInstance.elements().length !== 0) {
var cy = appUtilities.getActiveCy();
if (cy.elements().length !== 0) {
promptConfirmationView.render( function () {
chiseInstance.loadSBGNMLText(data, false, filename, cy, paramObj);
chiseInstance.endSpinner('paths-byURL-spinner');
Expand Down

0 comments on commit b61433a

Please sign in to comment.