Skip to content

Commit a62c95b

Browse files
committed
fix(Viewer): All files have konnector block
During this PR #2563, we have to pass the current file as an argument. The test was therefore always true in non-public view
1 parent 93e9e3e commit a62c95b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react/Viewer/Panel/getPanelBlocks.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const getPanelBlocksSpecs = (isPublic = false) => ({
2727
component: Qualification
2828
},
2929
konnector: {
30-
condition: () => isFromKonnector && !isPublic,
30+
condition: file => isFromKonnector(file) && !isPublic,
3131
component: KonnectorBlock
3232
},
3333
certifications: {

0 commit comments

Comments
 (0)