From e0865ae7d74b55ef38fcfec878065d673dc05e65 Mon Sep 17 00:00:00 2001 From: les Date: Tue, 16 Mar 2021 19:54:26 +0100 Subject: [PATCH] import only needed lodash methods --- assets/helper.js | 3 ++- components/Editor.vue | 4 ++-- server/api/controller/event.js | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/assets/helper.js b/assets/helper.js index b8f16b2a..8c0ed801 100644 --- a/assets/helper.js +++ b/assets/helper.js @@ -1,4 +1,5 @@ -import { take, get } from 'lodash' +import take from 'lodash/take' +import get from 'lodash/get' export function attributesFromEvents (_events, _tags) { const colors = ['blue', 'orange', 'yellow', 'teal', 'indigo', 'green', 'red', 'purple', 'pink', 'gray'] diff --git a/components/Editor.vue b/components/Editor.vue index 2d9be390..bce977ed 100644 --- a/components/Editor.vue +++ b/components/Editor.vue @@ -64,7 +64,7 @@ editor-content.content(:editor='editor' spellcheck='false' :style="{ 'max-height': maxHeight }")