Error: docmost__search failed with items.map is not a function because the code assumed response.data.data is always an array. In some Docmost deployments, search results are returned as response.data.data.items.
Fix: Normalize the search response before mapping: accept both formats (data as array or data.items as array), and fall back to an empty array if neither is present.
Error: docmost__search failed with items.map is not a function because the code assumed response.data.data is always an array. In some Docmost deployments, search results are returned as response.data.data.items.
Fix: Normalize the search response before mapping: accept both formats (data as array or data.items as array), and fall back to an empty array if neither is present.
Pull request closed
Please reopen this pull request to perform a merge.
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.
Error: docmost__search failed with items.map is not a function because the code assumed response.data.data is always an array. In some Docmost deployments, search results are returned as response.data.data.items.
Fix: Normalize the search response before mapping: accept both formats (data as array or data.items as array), and fall back to an empty array if neither is present.
Pull request closed