Primary categories were being created successfully, but the Primary Category menu was incorrectly treating Page 1 as an assigned page even when no categories had been assigned a page or slot.
As a result, newly created unassigned categories were being placed on Page 2, leaving Page 1 empty.
Fix
Corrected the primary category pagination logic so that when no categories have an assigned page/slot, unassigned categories begin on Page 1.
Categories with explicitly assigned pages continue to display on their assigned pages, with unassigned categories beginning after the last assigned page.
## Resolution
### Cause
Primary categories were being created successfully, but the Primary Category menu was incorrectly treating Page 1 as an assigned page even when no categories had been assigned a page or slot.
As a result, newly created unassigned categories were being placed on Page 2, leaving Page 1 empty.
### Fix
Corrected the primary category pagination logic so that when no categories have an assigned page/slot, unassigned categories begin on Page 1.
Categories with explicitly assigned pages continue to display on their assigned pages, with unassigned categories beginning after the last assigned page.
### Result
- [x] Primary categories are created successfully.
- [x] New unassigned categories now appear on Page 1.
- [x] Page 1 is no longer incorrectly left empty.
- [x] Assigned category page/slot placement remains unchanged.
- [x] No database changes were required.
**Status: Resolved**
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Primary category creation from the admin menu does not work.
Resolution
Cause
Primary categories were being created successfully, but the Primary Category menu was incorrectly treating Page 1 as an assigned page even when no categories had been assigned a page or slot.
As a result, newly created unassigned categories were being placed on Page 2, leaving Page 1 empty.
Fix
Corrected the primary category pagination logic so that when no categories have an assigned page/slot, unassigned categories begin on Page 1.
Categories with explicitly assigned pages continue to display on their assigned pages, with unassigned categories beginning after the last assigned page.
Result
Status: Resolved
Unable to create primary categoryto #008 Unable to create primary category