Skip to content

Commit

Permalink
fix: edit-and-preview block - onRequestBlocksRepos params
Browse files Browse the repository at this point in the history
  • Loading branch information
Wattenberger committed Jul 19, 2022
1 parent 77366f2 commit 25175f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/file-blocks/edit-and-preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function (props: FileBlockProps) {
const [panes, setPanes] = useState<Block[]>(metadata?.panes || []);

const setDefaultBlockOptions = async () => {
const blockRepoOptions = await onRequestBlocksRepos(context.path);
const blockRepoOptions = await onRequestBlocksRepos({ path: context.path });
const blockOptions = blockRepoOptions.reduce(
(acc: Block[], repo: BlocksRepo) => {
return [...acc, ...repo.blocks];
Expand Down

0 comments on commit 25175f7

Please sign in to comment.