Small fixes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user