Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
elewis2 committed May 3, 2024
1 parent 0a73e24 commit 56ee1f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/DetailChip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function DetailChip(props: DetailChipProps) {
} = props;

const [anchorEl, setAnchorEl] = useState(null);

/**
* Closes popover.
*/
Expand Down
3 changes: 2 additions & 1 deletion src/components/FormLayout/FieldGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ const FieldGroup = ({
}: FieldGroupProps) => {
const { formVariant, formContent } = useContext(FormContext);
let properties;

if (model.name) {
properties = schemaDefn.getProperties(model.name);
} else {
properties = model.properties; // Field Group is used by passing props in some cases
properties = model.properties; // Field Group is used by passing props in some cases
}

// get the form content
Expand Down
1 change: 1 addition & 0 deletions src/components/VariantForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const VariantForm = ({
onSubmit, onError, value, formVariant,
}: VariantFormProps) => {
let defaultCoordinateType;

if (value.break1Start) {
defaultCoordinateType = value.break1Start['@class'];
}
Expand Down
1 change: 1 addition & 0 deletions src/components/hooks/useSchemaForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const useSchemaForm = (

const formValidator = useCallback((propName, propValue) => {
const prop = fieldDefs[propName];

if (prop) {
return schema.validateValue(prop, propValue, { ignoreMandatory: ignoreMandatoryErrors });
}
Expand Down

0 comments on commit 56ee1f4

Please sign in to comment.