Skip to content

Commit

Permalink
fix: breaking function signature on showImportModal onSuceessHandler (#…
Browse files Browse the repository at this point in the history
…6011)

This will fix the breaking change introduced in
toeverything/blocksuite@da781df
This should be merged after the next BlockSuite bump.
  • Loading branch information
fourdim committed Mar 5, 2024
1 parent dce3b59 commit 0ff1e8d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ export const usePageHelper = (blockSuiteWorkspace: BlockSuiteWorkspace) => {
const { showImportModal } = await import('@blocksuite/blocks');
const onSuccess = (
pageIds: string[],
options: { isWorkspaceFile: boolean }
options: { isWorkspaceFile: boolean; importedCount: number }
) => {
toast(
`Successfully imported ${pageIds.length} Page${
pageIds.length > 1 ? 's' : ''
`Successfully imported ${options.importedCount} Page${
options.importedCount > 1 ? 's' : ''
}.`
);
if (options.isWorkspaceFile) {
Expand Down

0 comments on commit 0ff1e8d

Please sign in to comment.