Skip to content

Commit b318a2b

Browse files
author
Amelia Wattenberger
committed
fix: edit-and-preview block - fix path reference
1 parent 3944eed commit b318a2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blocks/file-blocks/edit-and-preview/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export default function (props: FileBlockProps) {
3030

3131
const onRequestBlocksReposFiltered = useCallback(
3232
(params) => {
33-
return onRequestBlocksRepos({ ...params, path });
33+
return onRequestBlocksRepos({ ...params, path: context.path });
3434
},
35-
[onRequestBlocksRepos, path]
35+
[onRequestBlocksRepos, context.path]
3636
);
3737

3838
return (

0 commit comments

Comments
 (0)