Small fixes

This commit is contained in:
Sami Abuzakuk
2025-11-01 16:15:35 +01:00
parent 8eef535e02
commit c957d839dd
6 changed files with 13 additions and 13 deletions

View File

@@ -76,21 +76,21 @@
async function loadMoreNotifications() {
loadingMore = true;
try {
const more = await fetchSubscriptionNotifications(subscription.id.toString(), limit, offset);
const more = await fetchSubscriptionNotifications(subscription!.id.toString(), limit, offset);
notifications = [...notifications, ...more];
offset += more.length;
if (more.length < limit) {
allLoaded = true;
}
} catch (error) {
window.showNotification('error', 'Failed to load more notifications');
} catch (err) {
window.showNotification('error', 'Failed to load more notifications - ' + err);
}
loadingMore = false;
}
</script>
<main class="p-4">
<h1 class="text-2xl font-bold mb-4">Notifications for {subscription.topic}:</h1>
<h1 class="text-2xl font-bold mb-4">Notifications for {subscription!.topic}:</h1>
<div class="flex justify-between items-center mb-4">
<a href="/notifications" class="text-blue-500 hover:underline">← Return to Subscriptions</a>