fix: handle slide url in null state
This commit is contained in:
+3
-1
@@ -9,7 +9,9 @@
|
|||||||
return `${_url}?embed`;
|
return `${_url}?embed`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUrl(_url): string {
|
function getUrl(_url: string | null): string | undefined {
|
||||||
|
if (!_url) return;
|
||||||
|
|
||||||
console.log({ _url });
|
console.log({ _url });
|
||||||
if (_url.includes('www.canva.com')) {
|
if (_url.includes('www.canva.com')) {
|
||||||
return canvaHandler(_url);
|
return canvaHandler(_url);
|
||||||
|
|||||||
Reference in New Issue
Block a user