Fix crash due to some props being undefined (#4427)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Hariom Balhara
2022-09-14 08:46:42 +00:00
committed by GitHub
co-authored by kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent ab4d910564
commit 2f9905e548
3 changed files with 9 additions and 5 deletions
@@ -120,11 +120,11 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
.map((app) => {
return {
slug: app.slug,
title: app.title,
title: app.title || app.name,
logo: app.logo,
description: app.description,
credentialId: app.credentials[0].id,
isGlobal: app.isGlobal,
isGlobal: app.isGlobal || false,
};
});
+1 -2
View File
@@ -1,7 +1,6 @@
{
"/*": "Don't modify slug - If required, do it using cli edit command",
"name": "riverside",
"title": "Riverside",
"name": "Riverside",
"slug": "riverside",
"type": "riverside_video",
"imageSrc": "/api/app-store/riverside/icon.svg",
+6 -1
View File
@@ -54,7 +54,12 @@ export interface App {
| `${string}_web3`
| `${string}_other`
| `${string}_other_calendar`;
/** The display name for the app, TODO settle between this or name */
/**
* @deprecated
*
* Use name instead. Remove this property after ensuring name has the required value everywhere
* */
title?: string;
/** The display name for the app */
name: string;