Skip to content

Commit

Permalink
fix: typo & type
Browse files Browse the repository at this point in the history
Signed-off-by: daeyeon ko <[email protected]>
  • Loading branch information
kkdy21 committed Dec 17, 2024
1 parent ee8dd02 commit 48be998
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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<any> => {
const fetchGetUsers = async (userId: string) => {
await SpaceConnector.clientV2.identity.user.get<UserGetParameters, UserModel>({
user_id: userId,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Template: Story = {
:maxWidth="maxWidth"
:enableDoubleClickResize="enableDoubleClickResize">
<template #sidebar>
Left LayoutLeft
Left Layout
</template>
<template #default>
Right Layout
Expand Down

0 comments on commit 48be998

Please sign in to comment.