From 48be998093d962e772d37ec4ab1bb2fef783b505 Mon Sep 17 00:00:00 2001 From: daeyeon ko Date: Tue, 17 Dec 2024 22:31:51 +0900 Subject: [PATCH] fix: typo & type Signed-off-by: daeyeon ko --- .../src/services/iam/components/UserManagementAddUser.vue | 6 +++--- .../src/layouts/vertical-layout/PVerticalLayout.stories.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/src/services/iam/components/UserManagementAddUser.vue b/apps/web/src/services/iam/components/UserManagementAddUser.vue index ce4c15c20c..5b8c183c8f 100644 --- a/apps/web/src/services/iam/components/UserManagementAddUser.vue +++ b/apps/web/src/services/iam/components/UserManagementAddUser.vue @@ -90,7 +90,7 @@ const handleSelectDropdownItem = (selected: AuthType|LocalType) => { const getUserList = async () => { let isNew = userPageState.isAdminMode || userPageState.afterWorkspaceCreated; try { - const trimmedText = formState.searchText?.trim(); + const trimmedText = formState.searchText.trim(); if (userPageState.isAdminMode || userPageState.afterWorkspaceCreated) { await fetchGetUsers(trimmedText); } else { @@ -157,7 +157,7 @@ const initAuthTypeList = async () => { }; const addSelectedItem = (isNew: boolean) => { if (!formState.searchText) return; - const trimmedText = formState.searchText?.trim(); + const trimmedText = formState.searchText.trim(); if (state.selectedItems.some((item) => item.name === trimmedText && item.auth_type === formState.selectedMenuItem)) return; state.selectedItems.unshift({ @@ -202,7 +202,7 @@ const fetchGetWorkspaceUsers = async (userId: string) => { }); updateValidationState(i18n.t('IAM.USER.FORM.USER_ID_INVALID_WORKSPACE', { userId })); }; -const fetchGetUsers = async (userId: string) : Promise => { +const fetchGetUsers = async (userId: string) => { await SpaceConnector.clientV2.identity.user.get({ user_id: userId, }); diff --git a/packages/mirinae/src/layouts/vertical-layout/PVerticalLayout.stories.ts b/packages/mirinae/src/layouts/vertical-layout/PVerticalLayout.stories.ts index 5ec9824a29..48a080a181 100644 --- a/packages/mirinae/src/layouts/vertical-layout/PVerticalLayout.stories.ts +++ b/packages/mirinae/src/layouts/vertical-layout/PVerticalLayout.stories.ts @@ -40,7 +40,7 @@ const Template: Story = { :maxWidth="maxWidth" :enableDoubleClickResize="enableDoubleClickResize">