Skip to content

Commit 3844568

Browse files
committed
#RI-2614 - Enablement area pagination doesn't work correctly
#RI-2615 - No scroll when all the articles are unfolded
1 parent 4ce068c commit 3844568

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

redisinsight/ui/src/pages/workbench/components/enablement-area/EnablementArea/components/LazyInternalPage/LazyInternalPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const LazyInternalPage = ({ onClose, title, path, sourcePath }: Props) => {
4646
const dispatch = useDispatch()
4747
const fetchService = IS_ABSOLUTE_PATH.test(path) ? axios : resourcesService
4848

49-
const getRelatedPages = useCallback((sourcePath: string): IEnablementAreaItem[] => {
49+
const getRelatedPages = (sourcePath: string): IEnablementAreaItem[] => {
5050
const pageInfo = getFileInfo(path)
5151

5252
switch (sourcePath) {
@@ -57,7 +57,7 @@ const LazyInternalPage = ({ onClose, title, path, sourcePath }: Props) => {
5757
default:
5858
return []
5959
}
60-
}, [sourcePath, guides, tutorials])
60+
}
6161

6262
const loadContent = async () => {
6363
setLoading(true)

redisinsight/ui/src/pages/workbench/components/enablement-area/styles.module.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
}
2828

2929
.areaContentWrapper {
30+
height: 100% !important;
31+
3032
&.minimized {
3133
width: 0;
3234
visibility: hidden;

0 commit comments

Comments
 (0)