Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props: InnerProps) {
super(props);
const initialState =
this.props.context.searchProfileStore.map(
profileStore => this.initialState(profileStore, props.ranges.map(Rdf.iri))
).getOrElse({
relation: Maybe.Nothing(),
relations: [],
});
this.state = initialState;
}
constructor(props: ObservationComponentProps, context) {
super(props, context);
if (props.initialState) {
this.state = props.initialState;
} else {
this.state = {
iri: Maybe.Nothing(),
title: '',
note: '',
place: null,
date: null,
};
}
}
constructor(props: BeliefAdoptionComponentProps, context) {
super(props, context);
if (props.initialState) {
this.state = props.initialState;
} else {
this.state = {
iri: Maybe.Nothing(),
title: '',
note: '',
belief: undefined,
};
}
}
constructor(props, context) {
super(props, context);
if (props.initialState) {
this.state = props.initialState;
} else {
this.state = {
iri: Maybe.Nothing(),
title: '',
note: '',
logicType: undefined,
premises: [],
logics: [],
};
}
}
constructor(props: CreateAlignmentActionProps, context: any) {
super(props, context);
this.state = {
iri: Maybe.Nothing(),
source: null,
target: null,
label: '',
description: '',
};
}
componentWillReceiveProps(props: CreateAlignmentActionProps) {