[yagin]add condition render for viewer component
This commit is contained in:
parent
8b3cde536b
commit
a6f6eb5a34
@ -578,11 +578,11 @@ const ReviewPage = () => {
|
|||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Viewer
|
{selectedFileData && <Viewer
|
||||||
plugins={[defaultLayoutPluginInstance]}
|
plugins={[defaultLayoutPluginInstance]}
|
||||||
fileUrl={selectedFileData}
|
fileUrl={selectedFileData}
|
||||||
onDocumentLoad={() => setImageLoading(false)}
|
onDocumentLoad={() => setImageLoading(false)}
|
||||||
/>
|
/>}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div
|
<div
|
||||||
@ -756,8 +756,7 @@ const ReviewPage = () => {
|
|||||||
>
|
>
|
||||||
<Input
|
<Input
|
||||||
size='middle'
|
size='middle'
|
||||||
value={`Sub: ${filterSubsidiaries}, Date:${
|
value={`Sub: ${filterSubsidiaries}, Date:${filterDateRange[0]
|
||||||
filterDateRange[0]
|
|
||||||
? filterDateRange[0] + ' to ' + filterDateRange[1]
|
? filterDateRange[0] + ' to ' + filterDateRange[1]
|
||||||
: 'All'
|
: 'All'
|
||||||
}, Reviewed: ${filterReviewState}, Tests: ${filterIncludeTests}`}
|
}, Reviewed: ${filterReviewState}, Tests: ${filterIncludeTests}`}
|
||||||
@ -781,12 +780,12 @@ const ReviewPage = () => {
|
|||||||
let shouldRevised = false;
|
let shouldRevised = false;
|
||||||
try {
|
try {
|
||||||
if (
|
if (
|
||||||
selectedFileDataSource[data]?.[FEEDBACK_ACCURACY].length > 0
|
selectedFileDataSource[data]?.[FEEDBACK_ACCURACY]?.length > 0
|
||||||
) {
|
) {
|
||||||
shouldRevised =
|
shouldRevised =
|
||||||
selectedFileDataSource[data][FEEDBACK_ACCURACY][0] < 1;
|
selectedFileDataSource[data][FEEDBACK_ACCURACY][0] < 1;
|
||||||
}
|
}
|
||||||
} catch (error) {}
|
} catch (error) { }
|
||||||
return (
|
return (
|
||||||
<div style={{ margin: '0 0 8px' }} className='file-input-group' key={data}>
|
<div style={{ margin: '0 0 8px' }} className='file-input-group' key={data}>
|
||||||
<div
|
<div
|
||||||
|
Loading…
Reference in New Issue
Block a user