mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(Notion Node): Ensure arg is string during page ID extraction (#8153)
https://n8nio.sentry.io/issues/4765178087 Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
parent
8e873ca2f3
commit
e94b8a6c30
|
@ -892,7 +892,7 @@ export async function downloadFiles(this: IExecuteFunctions | IPollFunctions, re
|
|||
return elements;
|
||||
}
|
||||
|
||||
export function extractPageId(page: string) {
|
||||
export function extractPageId(page = '') {
|
||||
if (page.includes('p=')) {
|
||||
return page.split('p=')[1];
|
||||
} else if (page.includes('-') && page.includes('https')) {
|
||||
|
|
Loading…
Reference in a new issue