mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00: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:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user