Skip to content

Commit

Permalink
fix(console): log table page auto select namespace (#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-hnny authored Oct 28, 2022
1 parent 32d6cae commit 6e2e819
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/console/src/modules/logStash/actions/namespaceActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ const fetchNamespaceListActions = generateFetcherActionCreator({
return response;
},
finish: (dispatch: Redux.Dispatch, getState: GetState) => {
const { namespaceList } = getState();

dispatch(namespaceActions.selectNamespace(namespaceList?.data?.records?.[0]?.namespace ?? ''));
dispatch(namespaceActions.autoSelectNamespaceForCreate());
}
});
Expand Down

0 comments on commit 6e2e819

Please sign in to comment.