From cc1691abb8ed26afbde872d39d7a514fd2f8307c Mon Sep 17 00:00:00 2001 From: yjnoh Date: Fri, 6 Sep 2024 10:23:13 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=A8=ED=85=8D=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EB=A9=94=EB=89=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/context-menu/QContextMenu.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/common/context-menu/QContextMenu.jsx b/src/components/common/context-menu/QContextMenu.jsx index 9a805ba1..4658ef6f 100644 --- a/src/components/common/context-menu/QContextMenu.jsx +++ b/src/components/common/context-menu/QContextMenu.jsx @@ -12,9 +12,11 @@ export default function QContextMenu(props) { let contextType = '' if (activeObject) { - //이건 바뀔 가능성이 있음 - if (activeObject.initOptions.name.indexOf('guide') > -1) { - contextType = 'surface' //면형상 + if (activeObject.initOptions) { + //이건 바뀔 가능성이 있음 + if (activeObject.initOptions.name.indexOf('guide') > -1) { + contextType = 'surface' //면형상 + } } }