Created
December 5, 2016 12:26
-
-
Save pioh/e1ee78975f216713bd5c0121ceaa4e17 to your computer and use it in GitHub Desktop.
TaskStore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import TaskStore from './TaskStore' | |
function TaskStoreSaveErrors (data) { | |
let task = TaskStore(data) | |
return task.saveErrors | |
} | |
// task.saveErrors Example | |
// [ | |
// { | |
// path: 'offer.price', | |
// type: 'REQUIRED', | |
// message: 'Необходимо заполнить поле', | |
// }, | |
// { | |
// path: 'offer.total', | |
// type: 'BAD_VALUE', | |
// message: 'Неверный формат данных', | |
// }, | |
// { | |
// path: '/', | |
// message: 'Необходимо заполнить одно из полей этаж расположения', | |
// }, | |
// ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment