Skip to content

Commit

Permalink
fix optional column title
Browse files Browse the repository at this point in the history
  • Loading branch information
uidp committed Jun 11, 2024
1 parent a0fd505 commit 0d9f4ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ApiProperty } from '@nestjs/swagger';
import { DecodeHtmlEntities } from '@shared/controller';
import { CardSkeletonResponse } from './card-skeleton.response';
import { TimestampsResponse } from '../timestamps.response';
import { CardSkeletonResponse } from './card-skeleton.response';

export class ColumnResponse {
constructor({ id, title, cards, timestamps }: ColumnResponse) {
Expand All @@ -18,7 +18,7 @@ export class ColumnResponse {

@ApiProperty()
@DecodeHtmlEntities()
title?: string;
title: string;

@ApiProperty({
type: [CardSkeletonResponse],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class ColumnResponseMapper {
static mapToResponse(column: Column): ColumnResponse {
const result = new ColumnResponse({
id: column.id,
title: column.title,
title: column.title ?? '',
cards: column.children.map((card) => {
/* istanbul ignore next */
if (!(card instanceof Card)) {
Expand Down

0 comments on commit 0d9f4ae

Please sign in to comment.