X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/df9197982583c61e6f142d37ca8e01a8277027d3..7bf8014027507777a91a0266cf37beaa9841a2d1:/src/views-components/dialog-update/dialog-project-update.tsx

diff --git a/src/views-components/dialog-update/dialog-project-update.tsx b/src/views-components/dialog-update/dialog-project-update.tsx
index 64f75433..fda7c47d 100644
--- a/src/views-components/dialog-update/dialog-project-update.tsx
+++ b/src/views-components/dialog-update/dialog-project-update.tsx
@@ -10,17 +10,17 @@ import { FormDialog } from 'components/form-dialog/form-dialog';
 import { ProjectNameField, ProjectDescriptionField, UsersField } from 'views-components/form-fields/project-form-fields';
 import { GroupClass } from 'models/group';
 
-type DialogProjectProps = WithDialogProps<{sourcePanel: GroupClass, showUsersField?: boolean}> & InjectedFormProps<ProjectUpdateFormDialogData>;
+type DialogProjectProps = WithDialogProps<{sourcePanel: GroupClass, create?: boolean}> & InjectedFormProps<ProjectUpdateFormDialogData>;
 
 export const DialogProjectUpdate = (props: DialogProjectProps) => {
     let title = 'Edit Project';
     let fields = ProjectEditFields;
     const sourcePanel = props.data.sourcePanel || '';
-    const showUsersField = !!props.data.showUsersField;
+    const create = !!props.data.create;
 
     if (sourcePanel === GroupClass.ROLE) {
-        title = showUsersField ? 'Create Group' : 'Edit Group';
-        fields = showUsersField ? GroupAddFields : ProjectEditFields;
+        title = create ? 'Create Group' : 'Edit Group';
+        fields = create ? GroupAddFields : ProjectEditFields;
     }
 
     return <FormDialog
