mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix missing edgecase
This commit is contained in:
1 parent
b66f44f9a1
commit
006d64e828
1 file changed
+2
-2
@@ -27,12 +27,12 @@
|
||||
deployments.find((d) => site.deploymentId && d.$id === site.deploymentId) ?? null;
|
||||
|
||||
if (theme === 'dark') {
|
||||
return deployment
|
||||
return deployment?.screenshotDark
|
||||
? getFilePreview(deployment.screenshotDark)
|
||||
: `${base}/images/sites/screenshot-placeholder-dark.svg`;
|
||||
}
|
||||
|
||||
return deployment
|
||||
return deployment?.screenshotLight
|
||||
? getFilePreview(deployment.screenshotLight)
|
||||
: `${base}/images/sites/screenshot-placeholder-light.svg`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user