Skip to content

Commit 2169357

Browse files
committed
fix: properties panel crash when no selection was made
1 parent 7a79afa commit 2169357

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/webui/src/client/ui/UserEditOperations/PropertiesPanel.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export function PropertiesPanel(): JSX.Element {
3232
console.log('listSelectedElements', listSelectedElements())
3333
const selectedElement = listSelectedElements()?.[0]
3434

35+
if (!selectedElement) return <></>
36+
3537
const { t } = useTranslation()
3638

3739
React.useEffect(() => {

0 commit comments

Comments
 (0)