X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/49ad5cc761e56b7d2fb204e872ad956c6fc1c60c..8eb3dc9fe8b8ed991b439885f874d5cb5dc1ecd1:/src/views-components/sharing-dialog/sharing-management-form.tsx

diff --git a/src/views-components/sharing-dialog/sharing-management-form.tsx b/src/views-components/sharing-dialog/sharing-management-form.tsx
index 9c707beb1c..d78c6fe17e 100644
--- a/src/views-components/sharing-dialog/sharing-management-form.tsx
+++ b/src/views-components/sharing-dialog/sharing-management-form.tsx
@@ -3,18 +3,9 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import { reduxForm } from 'redux-form';
-import { connect } from 'react-redux';
-import { compose } from 'redux';
 import SharingManagementFormComponent from './sharing-management-form-component';
+import { SHARING_MANAGEMENT_FORM_NAME } from '~/store/sharing-dialog/sharing-dialog-types';
 
-export const SharingManagementForm = compose(
-    connect(() => ({
-        initialValues: {
-            permissions: [
-                { email: 'chrystian.klingenberg@contractors.roche.com', permissions: 'Read' },
-                { email: 'artur.janicki@contractors.roche.com', permissions: 'Write' },
-            ],
-        }
-    })),
-    reduxForm({ form: 'SHARING_MANAGEMENT_FORM' })
-)(SharingManagementFormComponent);
\ No newline at end of file
+export const SharingManagementForm = reduxForm(
+    { form: SHARING_MANAGEMENT_FORM_NAME }
+)(SharingManagementFormComponent);
