Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonjetz committed Oct 26, 2023
1 parent 07d6fd3 commit e7cb6a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fragmentarium/domain/FragmentDtos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const ExternalNumberTypes = [
export type ExternalNumber = typeof ExternalNumberTypes[number]

export type ExternalNumbers = {
[K in ExternalNumber]: string
[K in ExternalNumber]?: string
}

export default interface FragmentDto {
Expand Down
2 changes: 1 addition & 1 deletion src/fragmentarium/domain/fragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class Fragment {
}

private getExternalNumber(numberType: ExternalNumber): string {
return this.externalNumbers[numberType]
return this.externalNumbers[numberType] || ''
}

get cdliNumber(): string {
Expand Down

0 comments on commit e7cb6a8

Please sign in to comment.