Skip to content

Commit

Permalink
Change error message
Browse files Browse the repository at this point in the history
  • Loading branch information
GribovskyPavel committed Feb 9, 2024
1 parent dfb99d5 commit 6d25224
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ function PdfDocument(props) {
onBboxClick={data => onBboxSelect(data)}
onSelectBbox={data => onSelectBboxByKeyboard(data)}
bboxes={bboxes}
treeBboxSelectionMode="SELECTED_WITH_KIDS"
isTreeBboxesVisible={props.isTreeShow}
page={props.page}
ruleSummaries={props.ruleSummaries}
Expand Down
2 changes: 1 addition & 1 deletion src/common/store/job/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const uploadPdfFile = createStep('FILE_UPLOAD', 30, async (dispatch, getState) =
const link = getFileLink(getState());
const fileDescriptor = await FileService.uploadLink(link);
if (fileDescriptor.contentType !== 'application/pdf') {
throw new Error(`Unsupported content type: ${fileDescriptor.contentType}`);
throw new Error('Content type is not application/pdf');
}
const blob = await FileService.getFileContent(fileDescriptor.id);
const file = new File([blob], fileDescriptor.fileName);
Expand Down
Loading

0 comments on commit 6d25224

Please sign in to comment.