Seems that hierarchical error handling works..

TreeTable component seems to work too.
Edit is half-way through. Create / delete are TBD.
This commit is contained in:
Tomas Bures 2017-06-05 23:59:08 +02:00
parent 79ea9e1897
commit 5e4c86f626
24 changed files with 9967 additions and 261 deletions

View file

@ -24,7 +24,8 @@ module.exports = {
filterCustomFields,
getMjmlTemplate,
rollbackAndReleaseConnection,
filterObject
filterObject,
enforce
};
function getDefaultMergeTags(callback) {
@ -305,3 +306,10 @@ function filterObject(obj, allowedKeys) {
return result;
}
function enforce(condition, message) {
console.log(condition);
if (!condition) {
throw new Error(message);
}
}