🐛 Fix bug unable to fetch new item when collapsed the upload viewer
This commit is contained in:
committed by
Anton Shepilov
parent
49c4f10d37
commit
6f762ecefa
+18
-20
@@ -127,27 +127,25 @@ const PendingRootList = ({
|
||||
modalExpanded={modalExpanded}
|
||||
/>
|
||||
|
||||
{modalExpanded && (
|
||||
<div className="modal-body">
|
||||
<div className="bg-white px-4 py-2">
|
||||
<PerfectScrollbar
|
||||
options={{ suppressScrollX: true, suppressScrollY: false }}
|
||||
component="div"
|
||||
style={{ width: '100%', maxHeight: 300 }}
|
||||
>
|
||||
{keys.map(key => (
|
||||
<PendingRootRow key={key} rootKey={key} root={roots[key]} />
|
||||
))}
|
||||
</PerfectScrollbar>
|
||||
</div>
|
||||
<ModalFooter
|
||||
pauseOrResumeUpload={pauseOrResumeUpload}
|
||||
cancelUpload={cancelUpload}
|
||||
isPaused={isPaused}
|
||||
uploadingCount={uploadingCount + pausedCount}
|
||||
/>
|
||||
<div className={`modal-body ${modalExpanded ? 'block' : 'hidden'}`}>
|
||||
<div className="bg-white px-4 py-2">
|
||||
<PerfectScrollbar
|
||||
options={{ suppressScrollX: true, suppressScrollY: false }}
|
||||
component="div"
|
||||
style={{ width: '100%', maxHeight: 300 }}
|
||||
>
|
||||
{keys.map(key => (
|
||||
<PendingRootRow key={key} rootKey={key} root={roots[key]} />
|
||||
))}
|
||||
</PerfectScrollbar>
|
||||
</div>
|
||||
)}
|
||||
<ModalFooter
|
||||
pauseOrResumeUpload={pauseOrResumeUpload}
|
||||
cancelUpload={cancelUpload}
|
||||
isPaused={isPaused}
|
||||
uploadingCount={uploadingCount + pausedCount}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user