Skip to content

Commit

Permalink
change error type
Browse files Browse the repository at this point in the history
  • Loading branch information
levil664 committed Sep 5, 2023
1 parent 6280a5d commit 1693677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/schools/domains/common/components/table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const Table = <RowType, DataItemType>(props: CustomTableProps<RowType, Da
let baseColumns: any[]

if (customWidths && customWidths.length !== columnsTitlesAndKeys.length) {
throw new Error('Длина customWidths должна соответствовать длине columnsTitlesAndKeys.')
throw new TypeError('Длина customWidths должна соответствовать длине columnsTitlesAndKeys.')
}

if (!customWidths) {
Expand Down

0 comments on commit 1693677

Please sign in to comment.