pawelrojek/nextcloud-drawio

Jvascript Error --

OpneMind opened this issue · 1 comments

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

Fixed in 1.0.0