Remove board component title fallback
This commit is contained in:
@@ -14,7 +14,6 @@ import { Panel } from '@/components/common/Panel';
|
||||
import { useBoard, useMessages } from '@/components/hooks';
|
||||
import { Pencil, Plus, X } from '@/components/icons';
|
||||
import type { BoardComponentConfig } from '@/lib/types';
|
||||
import { getComponentDefinition } from '../boardComponentRegistry';
|
||||
import { BoardComponentRenderer } from './BoardComponentRenderer';
|
||||
import { BoardComponentSelect } from './BoardComponentSelect';
|
||||
|
||||
@@ -53,8 +52,7 @@ export function BoardEditColumn({
|
||||
|
||||
const hasComponent = !!component;
|
||||
const canRemoveAction = hasComponent || canRemove;
|
||||
const defaultTitle = component ? getComponentDefinition(component.type)?.name : undefined;
|
||||
const title = component?.title ?? defaultTitle;
|
||||
const title = component?.title;
|
||||
const description = component?.description;
|
||||
|
||||
const handleRemove = () => {
|
||||
|
||||
@@ -2,7 +2,6 @@ import { Box, Column } from '@umami/react-zen';
|
||||
import { Panel } from '@/components/common/Panel';
|
||||
import { useBoard } from '@/components/hooks';
|
||||
import type { BoardComponentConfig } from '@/lib/types';
|
||||
import { getComponentDefinition } from '../boardComponentRegistry';
|
||||
import { BoardComponentRenderer } from './BoardComponentRenderer';
|
||||
|
||||
export function BoardViewColumn({ component }: { component?: BoardComponentConfig }) {
|
||||
@@ -13,7 +12,7 @@ export function BoardViewColumn({ component }: { component?: BoardComponentConfi
|
||||
return null;
|
||||
}
|
||||
|
||||
const title = component.title ?? getComponentDefinition(component.type)?.name;
|
||||
const title = component.title;
|
||||
const description = component.description;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user