diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/toprating/OrganizationRatingTab.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/toprating/OrganizationRatingTab.kt index 50ed1bb33b..8ce56e9af4 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/toprating/OrganizationRatingTab.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/toprating/OrganizationRatingTab.kt @@ -24,12 +24,14 @@ import web.cssom.* import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json +private const val DEFAULT_PAGE_SIZE = 10_000 + val organizationRatingTab: FC = FC { _ -> val (organizationFilter, setOrganizationFilter) = useState(OrganizationFilter.created) val fetchOrganizationRequest: suspend WithRequestStatusContext.(OrganizationFilter) -> OrganizationArray = { filter -> post( - url = "$apiUrl/organizations/all-by-filters", + url = "$apiUrl/organizations/all-by-filters?pageSize=$DEFAULT_PAGE_SIZE", headers = jsonHeaders, body = Json.encodeToString(filter), loadingHandler = ::loadingHandler, diff --git a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/VulnerabilityWelcomeView.kt b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/VulnerabilityWelcomeView.kt index 805645543e..85fb6145f6 100644 --- a/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/VulnerabilityWelcomeView.kt +++ b/save-frontend/src/main/kotlin/com/saveourtool/save/frontend/components/views/welcome/VulnerabilityWelcomeView.kt @@ -21,10 +21,7 @@ import com.saveourtool.save.validation.FrontendRoutes import js.core.jso import org.w3c.fetch.Headers import react.* -import react.dom.html.ReactHTML.canvas import react.dom.html.ReactHTML.div -import react.dom.html.ReactHTML.h6 -import react.dom.html.ReactHTML.hr import react.dom.html.ReactHTML.main import react.dom.html.ReactHTML.span import web.cssom.*