Skip to content

Commit

Permalink
Merge pull request #33 from dmstr/feature/update-js-syntax
Browse files Browse the repository at this point in the history
Feature/update js syntax
  • Loading branch information
schmunk42 committed Feb 25, 2019
2 parents f98c060 + a1a8575 commit d821281
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/backend/page-route-items.js
Expand Up @@ -14,8 +14,9 @@ $(function () {
var schema = resp.schema;
if (schema !== undefined && schema !== false) {
var jsonEditorList = window.jsonEditors;
var editorId = self.data('editor-id');
var editor = jsonEditorList.find(editor => editor.element.id === "tree-request_params-container");
var editor = jsonEditorList.find(function (editor) {
return editor.element.id === "tree-request_params-container";
});

if (editor !== undefined) {
var element = editor.element;
Expand Down

0 comments on commit d821281

Please sign in to comment.