Use normal return on error also for applinksModel
This commit is contained in:
@@ -145,7 +145,8 @@ async function refreshApps() {
|
||||
const [error, result] = await appsModel.list();
|
||||
if (error) return console.error(error);
|
||||
|
||||
const applinks = await applinksModel.list();
|
||||
const [applinkError, applinks] = await applinksModel.list();
|
||||
if (applinkError) return console.error(applinkError);
|
||||
|
||||
// amend properties to mimick full app
|
||||
for (const applink of applinks) {
|
||||
|
||||
Reference in New Issue
Block a user