fix: handle slide url in null state

This commit is contained in:
Rotimi Best
2024-04-02 15:53:59 +01:00
parent 71052bc2cd
commit e46c9bac97
@@ -9,7 +9,9 @@
return `${_url}?embed`;
}
function getUrl(_url): string {
function getUrl(_url: string | null): string | undefined {
if (!_url) return;
console.log({ _url });
if (_url.includes('www.canva.com')) {
return canvaHandler(_url);