200085: Fix for sharing dialog
[arvados-workbench2.git] / src / store / sharing-dialog / sharing-dialog-types.ts
index a05224e2373753a705821d4d639368545df9d8d2..67da4b21a30864295b0be09c342226272a26804b 100644 (file)
@@ -53,4 +53,4 @@ export const getSharingPublicAccessFormData = (state: any) =>
 export const hasChanges = (state: RootState) =>
     isDirty(SHARING_PUBLIC_ACCESS_FORM_NAME)(state) ||
     isDirty(SHARING_MANAGEMENT_FORM_NAME)(state) ||
-    isDirty(SHARING_INVITATION_FORM_NAME)(state);
+    (isDirty(SHARING_INVITATION_FORM_NAME)(state) && !!state.form[SHARING_INVITATION_FORM_NAME].values?.invitedPeople.length);