                     (!showGraphPermissionsOnly || hasGraphPermissions) &&
                        (!showEnabledOnly || isEnabled);

                    row.style.display = shouldShow ? "table-row" : "none";

                    if (shouldShow) {
                        visibleAppsCount++;
                        if (app.graph_api_permissions) {
                            app.graph_api_permissions
                                .filter(perm => perm.trim().toLowerCase() !== "[none]" && perm.trim() !== "")
