Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] fix TS issue
Browse files Browse the repository at this point in the history
darnautov committed Nov 23, 2020

Verified

This commit was signed with the committer’s verified signature.
1 parent 22365eb commit 5da22fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/ml/public/ml_url_generator/use_ml_href.ts
Original file line number Diff line number Diff line change
@@ -17,8 +17,8 @@ export const useMlHref = (
basePath: string | undefined,
params: MlUrlGeneratorState
) => {
const [mlLink, setMlLink] = useState<string | null>(
basePath !== undefined ? `${basePath}/app/ml/${params.page}` : null
const [mlLink, setMlLink] = useState<string | undefined>(
basePath !== undefined ? `${basePath}/app/ml/${params.page}` : undefined
);

useEffect(() => {

0 comments on commit 5da22fc

Please sign in to comment.