Merge pull request #264 from unslothai/fix/attachment-tsx-type-error
fix(attachment): replace never exhaustive check to fix Colab TS2322 b…
This commit is contained in:
commit
2f84bbf0e0
1 changed files with 2 additions and 4 deletions
|
|
@ -149,10 +149,8 @@ const AttachmentUI: FC = () => {
|
|||
return "Document";
|
||||
case "file":
|
||||
return "File";
|
||||
default: {
|
||||
const _exhaustiveCheck: never = type;
|
||||
throw new Error(`Unknown attachment type: ${_exhaustiveCheck}`);
|
||||
}
|
||||
default:
|
||||
throw new Error(`Unknown attachment type: ${type as string}`);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue