Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
handle undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeurbanski1 committed Oct 2, 2024
1 parent c9caac9 commit b890143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/configUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const getToken = (): string | undefined => {

export const getPrismaApiUrl = (): string | undefined => {
let prismaURL: string = CONFIG.userConfig[USER_CONFIGURATION_PARAM.PRISMA_URL];
if (prismaURL.endsWith('/')) {
if (prismaURL?.endsWith('/')) {
prismaURL = prismaURL.substring(0, prismaURL.length - 1);
}
return prismaURL;
Expand Down

0 comments on commit b890143

Please sign in to comment.