Skip to content

Commit

Permalink
fix bug with clear select
Browse files Browse the repository at this point in the history
  • Loading branch information
one-more committed Aug 25, 2017
1 parent 18c2654 commit 54abccf
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
Empty file added .npmignore
Empty file.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## 1.0.1
fixed bug with clear select
8 changes: 4 additions & 4 deletions dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-cron-builder",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/bundle.js",
"description": "react component to create cron expression",
"repository": "https://github.com/one-more/react-cron-builder",
Expand Down
3 changes: 2 additions & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type {CronExpression} from 'types/CronExpression'

import head from 'lodash/head'
import values from 'lodash/values'
import get from 'lodash/get'
import {MINUTES, HOURS, EVERY} from 'data/constants'

export const toggleMultiple = (value: any) => {
Expand Down Expand Up @@ -53,7 +54,7 @@ export const ensureMultiple = (value: any, multiple: boolean) => {
export const getValues = (value: Array<Option>) => value.map((option: Option) => option.value);

export const getValue = (value: any) => {
return typeof value === 'object' ? value.value : value
return get(value, 'value') || value
};

export const generateCronExpression = (expression: CronExpression) => {
Expand Down

0 comments on commit 54abccf

Please sign in to comment.