Skip to content

Commit

Permalink
maint(pat querystring): Cleanup - direct import of Select2 is not nec…
Browse files Browse the repository at this point in the history
…essary.
  • Loading branch information
thet committed May 17, 2022
1 parent f749505 commit 13d0e0d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pat/querystring/querystring.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,12 @@ Criteria.prototype = {
} else {
self.$operator.val(
"plone.app.querystring.operation.string.relativePath"
)
);
}
} else if(self.$operator.val() === "plone.app.querystring.operation.string.relativePath") {
} else if (
self.$operator.val() ===
"plone.app.querystring.operation.string.relativePath"
) {
pathAndDepth = ["..", "1"];
}

Expand Down Expand Up @@ -639,7 +642,6 @@ export default Base.extend({
showPreviews: true,
},
init: async function () {
await import("select2");
await import("../select2/select2");
await import("../relateditems/relateditems");

Expand Down

0 comments on commit 13d0e0d

Please sign in to comment.