commit fix

This commit is contained in:
Michael Kret 2024-11-08 16:45:06 +02:00
parent a46d22d510
commit 8fac0928ca

View file

@ -926,7 +926,7 @@ export function getPageId(this: IExecuteFunctions, i: number) {
pageId = page.value;
} else if (page.value.includes('p=')) {
// e.g https://www.notion.so/xxxxx?v=xxxxx&p=xxxxx&pm=s
pageId = new URLSearchParams(page.value).get('p')
pageId = new URLSearchParams(page.value).get('p') || '';
} else {
// e.g https://www.notion.so/page_name-xxxxx
pageId = page.value.match(databasePageUrlValidationRegexp)?.[1] || '';