From ffadc6721b61b2d0331bdf016e52dc17d43d8de5 Mon Sep 17 00:00:00 2001
From: ssongliu <73214554+ssongliu@users.noreply.github.com>
Date: Fri, 26 Dec 2025 17:13:04 +0800
Subject: [PATCH] fix: Fix issue where compose cannot be created when empty
(#11481)
---
frontend/src/views/container/compose/index.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/frontend/src/views/container/compose/index.vue b/frontend/src/views/container/compose/index.vue
index ac915a22f..738d62d5d 100644
--- a/frontend/src/views/container/compose/index.vue
+++ b/frontend/src/views/container/compose/index.vue
@@ -19,7 +19,7 @@
-
+
{
};
const loadTableHeight = () => {
- if (currentCompose.value.createdBy === '1Panel') {
+ if (currentCompose.value?.createdBy === '1Panel') {
return `calc(100vh - 120px)`;
} else {
return `calc(100vh - 240px)`;