Browse Source

fix(nc-gui) cast ProjectUserReqType for projectUserAdd

pull/5307/head
Wing-Kam Wong 2 years ago
parent
commit
2a5761b182
  1. 4
      packages/nc-gui/components/tabs/auth/UserManagement.vue

4
packages/nc-gui/components/tabs/auth/UserManagement.vue

@ -1,6 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { OrgUserRoles } from 'nocodb-sdk' import { OrgUserRoles } from 'nocodb-sdk'
import type { RequestParams } from 'nocodb-sdk' import type { ProjectUserReqType, RequestParams } from 'nocodb-sdk'
import { import {
extractSdkResponseErrorMsg, extractSdkResponseErrorMsg,
message, message,
@ -82,7 +82,7 @@ const inviteUser = async (user: User) => {
user.roles = 'editor' user.roles = 'editor'
} }
await api.auth.projectUserAdd(project.value.id, user) await api.auth.projectUserAdd(project.value.id, user as ProjectUserReqType)
// Successfully added user to project // Successfully added user to project
message.success(t('msg.success.userAddedToProject')) message.success(t('msg.success.userAddedToProject'))

Loading…
Cancel
Save