Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

TypeError: Cannot read property '$options' of undefined #70

@jasiek-net

Description

@jasiek-net
"query-builder-vue": "^1.0.5",
"vue": "^2.5.22",

I have a problem with drag and drop in production version. Everything works in developer mode yarn dev, but on production yarn build I have this error when I try to drag and drop element (it shows on drop actually). I think the problem is with function below:

function getNextGroup(group) {
  if (group.depth < 1) {
    return group;
  }

  var vm = group;

  do {
    vm = vm.$parent;
  } while (vm.$options.name !== 'QueryBuilderGroup');

  return vm;
}

Maybe vm.$options does not exists for minified version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions