From cae256ce69908f7301694736fc07dd75d7c9876a Mon Sep 17 00:00:00 2001 From: Timothy Sullivan Date: Thu, 18 Jul 2024 12:53:15 -0700 Subject: [PATCH] Clean up args --- .../public/management/spaces_grid/spaces_grid_page.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx b/x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx index a4eba005d1991..e68ce8bcb4d6a 100644 --- a/x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx +++ b/x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx @@ -138,7 +138,7 @@ export class SpacesGridPage extends Component { ) : undefined} { rowProps={(item) => ({ 'data-test-subj': `spacesListTableRow-${item.id}`, })} - columns={this.getColumnConfig({ serverBasePath: this.props.serverBasePath })} + columns={this.getColumnConfig()} pagination={true} sorting={true} search={{ @@ -256,7 +256,7 @@ export class SpacesGridPage extends Component { } }; - public getColumnConfig({ serverBasePath }: { serverBasePath: string }) { + public getColumnConfig() { const config: Array> = [ { field: 'initials', @@ -429,7 +429,7 @@ export class SpacesGridPage extends Component { color: 'primary', href: (rowRecord) => addSpaceIdToPath( - serverBasePath, + this.props.serverBasePath, rowRecord.id, `${ENTER_SPACE_PATH}?next=/app/management/kibana/spaces/` ),