Show [N] more result is missing in Zoekt Search

Summary

With the FF zoekt_ast_search_payload enabled, the Show [N] more results button is missing in the Zoekt search result.

Steps to reproduce

Enable the FF zoekt_ast_search_payload. Perform a zoekt code search at the project(or group) level.

Link: https://gitlab.com/search?search=zoekt&nav_source=navbar&project_id=278964&group_id=9970&search_code=true&repository_ref=master

You can enable the FF for your user and then simulate the FF disabled by searching incognito.

What is the current bug behavior?

Show [N] more results button is missing in the Zoekt search result

What is the expected correct behavior?

Show [N] more results button should be visible in the Zoekt search result

Relevant logs and/or screenshots

zoekt_ast_search_payload disabled zoekt_ast_search_payload enabled
Screenshot_2025-08-05_at_22.14.19 Screenshot_2025-08-05_at_22.14.26

Possible fixes