validate min/max values on save
This commit is contained in:
parent
3f3671f138
commit
124e35d153
5 changed files with 61 additions and 28 deletions
|
|
@ -39,10 +39,8 @@ function selectedAccounts () {
|
|||
|
||||
const mapSchema = code => schemas[code]
|
||||
return config.fetchConfig()
|
||||
.then(data => {
|
||||
if (!data) return []
|
||||
|
||||
const accountCodes = _.uniq(data.config.map(mapAccount)
|
||||
.then(conf => {
|
||||
const accountCodes = _.uniq(conf.map(mapAccount)
|
||||
.filter(_.identity))
|
||||
|
||||
return _.sortBy(_.get('display'), accountCodes.map(mapSchema)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue