Skip to content

Commit af7f197

Browse files
fix(customHomePage): allow to add global link module to new row
1 parent e24fc39 commit af7f197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datahub-web-react/src/app/homeV3/template/components/addModuleMenu/useAddModuleMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,15 @@ export default function useAddModuleMenu(position: ModulePositionInput, closeMen
205205
<ModuleMenuItem
206206
module={convertModuleToModuleInfo(module)}
207207
isDisabled={
208-
(SMALL_MODULE_TYPES.includes(module.properties.type) && !isSmallModuleRow) ||
208+
(SMALL_MODULE_TYPES.includes(module.properties.type) && isLargeModuleRow) ||
209209
(LARGE_MODULE_TYPES.includes(module.properties.type) && isSmallModuleRow)
210210
}
211211
isSmallModule={SMALL_MODULE_TYPES.includes(module.properties.type)}
212212
/>
213213
),
214214
onClick: () => handleAddExistingModule(module),
215215
disabled:
216-
(SMALL_MODULE_TYPES.includes(module.properties.type) && !isSmallModuleRow) ||
216+
(SMALL_MODULE_TYPES.includes(module.properties.type) && isLargeModuleRow) ||
217217
(LARGE_MODULE_TYPES.includes(module.properties.type) && isSmallModuleRow),
218218
}));
219219

0 commit comments

Comments
 (0)