X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/49ad5cc761e56b7d2fb204e872ad956c6fc1c60c..546052817ac18623f5389914a3077e8cc6a3d4f4:/src/views-components/sharing-dialog/sharing-invitation-form.tsx

diff --git a/src/views-components/sharing-dialog/sharing-invitation-form.tsx b/src/views-components/sharing-dialog/sharing-invitation-form.tsx
index ca801ae0..d8e86f93 100644
--- a/src/views-components/sharing-dialog/sharing-invitation-form.tsx
+++ b/src/views-components/sharing-dialog/sharing-invitation-form.tsx
@@ -6,13 +6,15 @@ import { reduxForm } from 'redux-form';
 import { connect } from 'react-redux';
 import { compose } from 'redux';
 import SharingInvitationFormComponent from './sharing-invitation-form-component';
-import { PermissionSelectValue } from './permission-select';
+import { SHARING_INVITATION_FORM_NAME } from '~/store/sharing-dialog/sharing-dialog-types';
+import { PermissionLevel } from '~/models/permission';
 
 export const SharingInvitationForm = compose(
     connect(() => ({
         initialValues: {
-            permission: PermissionSelectValue.READ
+            permissions: PermissionLevel.CAN_READ,
+            invitedPeople: [],
         }
     })),
-    reduxForm({ form: 'SIMPLE_SHARING_FORM' })
+    reduxForm({ form: SHARING_INVITATION_FORM_NAME })
 )(SharingInvitationFormComponent);
\ No newline at end of file
