From 2efc3d7f205f4c0553e705bd91394e2888d32a16 Mon Sep 17 00:00:00 2001 From: Benjamin F Date: Sun, 19 Mar 2023 05:45:13 -0700 Subject: [PATCH] fix(plugin-title): Prevent store.get() warning messages --- plugins/plugin-title/src/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/plugin-title/src/index.mjs b/plugins/plugin-title/src/index.mjs index 9f8d1d840eb..73c138e2ba2 100644 --- a/plugins/plugin-title/src/index.mjs +++ b/plugins/plugin-title/src/index.mjs @@ -79,7 +79,7 @@ export const plugin = { } // Cut List instructions - const partCutlist = store.get(['cutlist', part.name]) + const partCutlist = store.get(['cutlist', part.name], []) // if there's a cutlist and it should be included if (so.cutlist && partCutlist?.materials) { // get the default cutonfold