Skip to content

Commit 317c3ea

Browse files
committed
Fix import progress card auto-refreshing
1 parent 81e25a8 commit 317c3ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/web/routes/profile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ router.get('/:id/:category{/:categoryOld}', ensureUserExists, (req, res) => {
253253
};
254254

255255
// Render import progress partial if requested
256-
if (partial == 'import_card') {
256+
if (partial == 'import_progress') {
257257
return res.renderPartial('profile/cardImportProgress', { updateStatus: getUpdateStatus() });
258258
}
259259

apps/web/views/partials/profile/cardImportProgress.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class="card warning flex align-center gap-8"
66
hx-get="?partial=import_progress"
77
hx-swap="outerHTML"
8-
hx-trigger="every:5s">
8+
hx-trigger="every 5s">
99
<div class="icon"><%= updateStatus.details.time_started ? 'update' : 'hourglass' %></div>
1010
<div class="text">
1111
<% if (updateStatus.details.time_started) { %>

0 commit comments

Comments
 (0)