Remove category number fill

In order to override the default of per page, you can set the number to ” to instruct the query to return all categories. Add the following code to your functions.php file.

add_filter( 'get_terms_args', 'show_all_categories_admin_nav_menu', 10, 2);

    function show_all_categories_admin_nav_menu( $args, $taxonomies ) {
        if( reset($taxonomies) === 'category' ) {
            $args['number'] = '';
        }

        return $args;
    }

If you set the number to blank it will still shows the numbers of page even though it’s showing all the categories.

Hope this will help you.