mirror of
https://github.com/outline/outline.git
synced 2026-12-04 02:20:17 +03:00
Fix TypeScript error: Add type assertion for filtered parsedPages
This commit is contained in:
1 parent
193dfb04db
commit
cd2737d84f
1 file changed
+1
-1
@@ -42,7 +42,7 @@ export default class NotionAPIImportTask extends APIImportTask<IntegrationServic
|
||||
);
|
||||
|
||||
// Filter out any null results (from pages/databases that couldn't be accessed)
|
||||
const validParsedPages = parsedPages.filter(Boolean);
|
||||
const validParsedPages = parsedPages.filter(Boolean) as ParsePageOutput[];
|
||||
|
||||
const taskOutput: ImportTaskOutput = validParsedPages.map((parsedPage) => ({
|
||||
externalId: parsedPage.externalId,
|
||||
|
||||
Reference in new issue
Block a user