score:2

const color= this.props.detail.options? this.props.detail.options.color || [] :[];

Related Query

More Query from same tag