fix lint
This commit is contained in:
parent
7ab05654cc
commit
63d5c89db2
|
@ -232,10 +232,12 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router
|
||||||
action: () => {
|
action: () => {
|
||||||
const query = {
|
const query = {
|
||||||
username: user.username,
|
username: user.username,
|
||||||
} as { username: string, host?: string}
|
} as { username: string, host?: string };
|
||||||
if(user.host !== null){
|
|
||||||
query.host = user.host
|
if (user.host !== null) {
|
||||||
|
query.host = user.host;
|
||||||
}
|
}
|
||||||
|
|
||||||
router.push('/search', {
|
router.push('/search', {
|
||||||
query
|
query
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue