Update dependencies

This commit is contained in:
Zaid Abdulla committed 2021-02-24 22:37:13 -08:00
1 parent fccda8d726
commit 8f69b74a89
18 files changed
+1003 -799

No files matched your search

+5 -5
View File
@@ -103,13 +103,13 @@ function putActionHandler(action, _object, isNew): Promise<ValidationErrors> {
.then(() => {
notifications.push("success", "User created");
store.setTimestamp(Date.now());
resolve();
resolve(null);
})
.catch(reject);
} else {
notifications.push("success", "User updated");
store.setTimestamp(Date.now());
resolve();
resolve(null);
}
})
.catch(reject);
@@ -121,7 +121,7 @@ function putActionHandler(action, _object, isNew): Promise<ValidationErrors> {
.then(() => {
notifications.push("success", "User deleted");
store.setTimestamp(Date.now());
resolve();
resolve(null);
})
.catch((err) => {
store.setTimestamp(Date.now());
@@ -247,7 +247,7 @@ export const component: ClosureComponent = (): Component => {
roles: user.roles.split(","),
},
actionHandler: (action, object) => {
return new Promise((resolve) => {
return new Promise<void>((resolve) => {
putActionHandler(action, object, false)
.then((errors) => {
const errorList = errors
@@ -329,7 +329,7 @@ export const component: ClosureComponent = (): Component => {
Object.assign(
{
actionHandler: (action, object) => {
return new Promise((resolve) => {
return new Promise<void>((resolve) => {
putActionHandler(action, object, true)
.then((errors) => {
const errorList = errors