Bugfixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
exports.__esModule = true;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
module.exports = function (actionAPI) {
|
||||
//Handle the action when executed
|
||||
actionAPI.handle(function (properties, status) {
|
||||
@@ -13,8 +13,9 @@ module.exports = function (actionAPI) {
|
||||
.setSource(sourceID)
|
||||
.then(function () {
|
||||
status('Source was set');
|
||||
})["catch"](function (error) {
|
||||
status("Error whilst setting source: " + error.message, 'error');
|
||||
})
|
||||
.catch(function (error) {
|
||||
status("Error whilst setting source: ".concat(error.message), 'error');
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -83,7 +84,8 @@ module.exports = function (actionAPI) {
|
||||
return { id: source, text: source };
|
||||
});
|
||||
callback();
|
||||
})["catch"](function (error) {
|
||||
})
|
||||
.catch(function (error) {
|
||||
fields[1].values = [];
|
||||
callback();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user