fix: 0 is falsy in JS - \"Wszystkie\" dropdown now works correctly
Some checks are pending
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions

perPage=0 (show all) was being overridden to 10 by || operator.
Changed to explicit key-in-object check to preserve 0 value.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-02-20 09:39:12 +01:00
parent b97338f1af
commit c42643b07c

View File

@ -754,7 +754,7 @@
function renderFbPostsPage(companyId) {
var container = document.getElementById('fbPostsContainer-' + companyId);
var allPosts = window._fbAllPosts[companyId] || [];
var perPage = window._fbPostsPerPage[companyId] || 10;
var perPage = (companyId in window._fbPostsPerPage) ? window._fbPostsPerPage[companyId] : 10;
var page = window._fbPostsPage[companyId] || 1;
// Calculate slice