|
@@ -61,6 +61,7 @@ export const helpers = EditorModule.helper({
|
|
|
},
|
|
|
isCustomChildComp(comp: DesignComp): boolean {
|
|
|
const parentComp = this.helper.findParentComp(comp.id);
|
|
|
+
|
|
|
if (!parentComp) return false;
|
|
|
const i =
|
|
|
parentComp.children.default?.findIndex((d) => d === comp.id) ?? -1;
|
|
@@ -69,6 +70,8 @@ export const helpers = EditorModule.helper({
|
|
|
isCompCanDelete(compId: string): boolean {
|
|
|
const comp = this.helper.findComp(compId);
|
|
|
if (!comp || !this.helper.isCustomChildComp(comp)) return false;
|
|
|
+ if (comp.compKey == "Container" && this.store.streamCardIds.length == 1)
|
|
|
+ return false;
|
|
|
return true;
|
|
|
// if (this.store.isEditComp) return true;
|
|
|
// return this.store.pageCompIds.includes(compId);
|