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

+6 -6
View File
@@ -77,7 +77,7 @@ function putActionHandler(action, _object, isNew?): Promise<ValidationErrors> {
`Config ${exists ? "updated" : "created"}`
);
store.setTimestamp(Date.now());
resolve();
resolve(null);
})
.catch(reject);
})
@@ -88,7 +88,7 @@ function putActionHandler(action, _object, isNew?): Promise<ValidationErrors> {
.then(() => {
notifications.push("success", "Config deleted");
store.setTimestamp(Date.now());
resolve();
resolve(null);
})
.catch((err) => {
store.setTimestamp(Date.now());
@@ -164,11 +164,11 @@ function renderTable(confsResponse, searchString): Children {
} else {
overlay.close(cb);
}
resolve();
resolve(null);
})
.catch((err) => {
notifications.push("error", err.message);
resolve();
resolve(null);
});
});
},
@@ -255,7 +255,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
@@ -267,7 +267,7 @@ export const component: ClosureComponent = (): Component => {
} else {
overlay.close(cb);
}
resolve();
resolve(null);
})
.catch((err) => {
notifications.push("error", err.message);