1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-24 17:24:14 +02:00
This commit is contained in:
syuilo
2025-08-26 08:50:34 +09:00
parent 0c8545ec1c
commit 506c8a259b
8 changed files with 26 additions and 22 deletions

View File

@@ -12,7 +12,7 @@ export async function lookupUser() {
const { canceled, result } = await os.inputText({
title: i18n.ts.usernameOrUserId,
});
if (canceled) return;
if (canceled || result == null) return;
const show = (user) => {
os.pageWindow(`/admin/user/${user.id}`);
@@ -46,7 +46,7 @@ export async function lookupUserByEmail() {
title: i18n.ts.emailAddress,
type: 'email',
});
if (canceled) return;
if (canceled || result == null) return;
try {
const user = await os.apiWithDialog('admin/accounts/find-by-email', { email: result });