Skip to content

Commit

Permalink
maint(pat structure): Don't depend on lodash.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed May 22, 2022
1 parent 64ef907 commit 6f92a53
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pat/structure/js/actionmenu.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import _ from "lodash";
import _t from "../../../core/i18n-wrapper";

const menuOptions = {
Expand Down Expand Up @@ -92,9 +91,9 @@ const ActionMenu = function (menu) {

const model = menu.model.attributes;
const app = menu.app;
const canMove = !!app.options.moveUrl
const canMove = !!app.options.moveUrl;

const result = _.cloneDeep(menuOptions);
const result = JSON.parse(JSON.stringify(menuOptions));
if (!(app.pasteAllowed() && model.is_folderish)) {
delete result.pasteItem;
}
Expand Down

0 comments on commit 6f92a53

Please sign in to comment.