Skip to content

Commit 6efe32f

Browse files
committed
Fix password modal.
1 parent 5269393 commit 6efe32f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mystbin/frontend/components/EditorTabs.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,16 @@ export default function EditorTabs({
193193

194194
try {
195195
if (response.status === 200) {
196-
setPasswordModal(false);
197196

198-
for (let file of paste["pastes"]) {
197+
for (let file of paste["files"]) {
199198
actualData.push({
200199
title: file["filename"],
201200
content: file["content"],
201+
image: file['attachment']
202202
});
203203
}
204204
setValue(actualData);
205+
setPasswordModal(false);
205206
} else {
206207
throw () => {};
207208
}

0 commit comments

Comments
 (0)