Skip to content

Commit

Permalink
Fixed new group button
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Feb 6, 2023
1 parent 4ab5ec2 commit 2783eda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/admin/component/GroupForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import set from 'lodash/set';
import { useGroupUiSchema, useGroupUiValidator, useGroupParser, useGroupFormatter} from '../hooks';
import { FormContext, setFormDataAction, setFormErrorAction } from '../../form/FormManager';

export function GroupForm ({group = {}, errors = [], context = {}, loading = false, schema, onSave, onCancel, onTouched}) {
export function GroupForm ({group = {}, errors = [], context = {}, loading = false, schema, onSave, onCancel, onTouched = () => {}}) {

const { dispatch } = React.useContext(FormContext);
const onChange = ({formData, errors}) => {
Expand Down
1 change: 1 addition & 0 deletions ui/src/app/admin/container/NewGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export function NewGroup({ groups }) {
errors={errors}
schema={schema}
loading={loading}
onTouched={() => setBlocking(true)}
onSave={(data) => save(data)}
onCancel={() => cancel()} />
</>}
Expand Down

0 comments on commit 2783eda

Please sign in to comment.