Skip to content

Commit

Permalink
fix(core/presentation): fix null reference in ReactSelectInput (spinn…
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Oct 11, 2019
1 parent 075bce1 commit c18f307
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function ReactSelectInput(props: IReactSelectInputProps) {
onChange,
onBlur,
value,
validation,
validation = {},
stringOptions,
options: optionOptions,
ignoreAccents: accents,
Expand All @@ -76,7 +76,7 @@ export function ReactSelectInput(props: IReactSelectInputProps) {
const ignoreAccents = isNil(accents) ? false : accents;
const mode = props.mode || 'TETHERED';
const className = orEmptyString(inputClassName);
const { category } = useValidationData((validation || {}).messageNode, validation.touched);
const { category } = useValidationData(validation.messageNode, validation.touched);
const style = category === 'error' ? reactSelectValidationErrorStyle : {};
const fieldProps = {
name,
Expand Down

0 comments on commit c18f307

Please sign in to comment.