🐛 Fix bug unable to fetch new item when collapsed the upload viewer

This commit is contained in:
lethemanh
2025-03-03 15:56:13 +07:00
committed by Anton Shepilov
parent 49c4f10d37
commit 6f762ecefa
@@ -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>
)}
</>