Skip to content

Commit 9c46a2a

Browse files
committed
fix: hide open button in unit sidebar if in unit page
1 parent e560647 commit 9c46a2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/library-authoring/containers/UnitInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const UnitInfo = () => {
4848
}
4949
}, [componentPickerMode, navigateTo, unitId]);
5050

51-
const showOpenUnitButton = !insideUnit || !componentPickerMode;
51+
const showOpenUnitButton = !insideUnit || componentPickerMode;
5252

5353
const renderTab = useCallback((infoTab: UnitInfoTab, component: React.ReactNode, title: string) => {
5454
if (disabledTabs.includes(infoTab)) {

0 commit comments

Comments
 (0)