pawelrojek / nextcloud-drawio

Draw.io intergration app
https://apps.nextcloud.com/apps/drawio
GNU Affero General Public License v3.0
227 stars 60 forks source link

Jvascript Error -- #139

Closed OpneMind closed 3 years ago

OpneMind commented 3 years ago

Hi After Click F5 This Error occur and draw.io not work. (When Click CTRL+F5 draw.io work again)


            if(OCA.AppSettings.overrideXml == "yes") {
                menu.addMenuEntry({
                    id: "drawIoDiagram",
                    displayName: t(OCA.DrawIO.AppName, "New Diagram"),
                                  templateName: t(OCA.DrawIO.AppName, "New Diagram.xml"),
                                  iconClass: "icon-drawio-new-xml", //fileType: "x-application/drawio",
                                  fileType: "xml",
                                  actionHandler: function (fileName) {
                                      var dir = fileList.getCurrentDirectory();
                                      fileList.createFile(fileName)
                                      .then(function () {
                                          OCA.DrawIO.EditFileNewWindow(OC.joinPaths(dir, fileName));
                                      });
                                  }
                });
            }

main.js?v=0511eb28-46:88 Uncaught TypeError: Cannot read property 'overrideXml' of null
    at Object.attach (main.js?v=0511eb28-46:88)
    at Object.attach (main.js?v=0511eb28-46:sourcemap:1)
    at initialize (merged-index.js?v=0511eb28-46:11146)
    at i.t.View (main.js?v=0511eb28-46:sourcemap:1)
    at new i (main.js?v=0511eb28-46:sourcemap:1)
    at FileList._onClickNewButton (merged-index.js?v=0511eb28-46:7629)
    at Xe (main.js?v=0511eb28-46:sourcemap:1)
    at HTMLAnchorElement.<anonymous> (main.js?v=0511eb28-46:sourcemap:1)
    at HTMLAnchorElement.<anonymous> (main.js?v=0511eb28-46:sourcemap:1)
    at HTMLAnchorElement.dispatch (main.js?v=0511eb28-46:sourcemap:1)

thanks

pawelrojek commented 3 years ago

Fixed in 1.0.0