From 49bd49b843a3f3f6fe8d855f20a75877b873462c Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Wed, 19 Apr 2023 19:04:04 +0200 Subject: [PATCH] fix: fixed github icon api route issue (#1117) --- site/src/components/SvgPreview/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/components/SvgPreview/utils.ts b/site/src/components/SvgPreview/utils.ts index 7772f8f30e..03f767f841 100644 --- a/site/src/components/SvgPreview/utils.ts +++ b/site/src/components/SvgPreview/utils.ts @@ -28,7 +28,7 @@ export const getCommands = (src: string) => ); export const getPaths = (src: string) => { - const commands = getCommands(src); + const commands = getCommands(src.includes('${src}`); const paths: Path[] = []; let prev: Point | undefined = undefined; let start: Point | undefined = undefined;