Skip to content

Commit 6f762ec

Browse files
lethemanhshepilov
authored andcommitted
🐛 Fix bug unable to fetch new item when collapsed the upload viewer
1 parent 49c4f10 commit 6f762ec

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

tdrive/frontend/src/app/components/file-uploads/pending-root-components/pending-root-list.tsx

+18-20
Original file line numberDiff line numberDiff line change
@@ -127,27 +127,25 @@ const PendingRootList = ({
127127
modalExpanded={modalExpanded}
128128
/>
129129

130-
{modalExpanded && (
131-
<div className="modal-body">
132-
<div className="bg-white px-4 py-2">
133-
<PerfectScrollbar
134-
options={{ suppressScrollX: true, suppressScrollY: false }}
135-
component="div"
136-
style={{ width: '100%', maxHeight: 300 }}
137-
>
138-
{keys.map(key => (
139-
<PendingRootRow key={key} rootKey={key} root={roots[key]} />
140-
))}
141-
</PerfectScrollbar>
142-
</div>
143-
<ModalFooter
144-
pauseOrResumeUpload={pauseOrResumeUpload}
145-
cancelUpload={cancelUpload}
146-
isPaused={isPaused}
147-
uploadingCount={uploadingCount + pausedCount}
148-
/>
130+
<div className={`modal-body ${modalExpanded ? 'block' : 'hidden'}`}>
131+
<div className="bg-white px-4 py-2">
132+
<PerfectScrollbar
133+
options={{ suppressScrollX: true, suppressScrollY: false }}
134+
component="div"
135+
style={{ width: '100%', maxHeight: 300 }}
136+
>
137+
{keys.map(key => (
138+
<PendingRootRow key={key} rootKey={key} root={roots[key]} />
139+
))}
140+
</PerfectScrollbar>
149141
</div>
150-
)}
142+
<ModalFooter
143+
pauseOrResumeUpload={pauseOrResumeUpload}
144+
cancelUpload={cancelUpload}
145+
isPaused={isPaused}
146+
uploadingCount={uploadingCount + pausedCount}
147+
/>
148+
</div>
151149
</div>
152150
)}
153151
</>

0 commit comments

Comments
 (0)