We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e82b04 commit 2372950Copy full SHA for 2372950
ui/src/pages/Questions/Detail/components/LinkedQuestions/index.tsx
@@ -22,6 +22,8 @@ import { Card, ListGroup } from 'react-bootstrap';
22
import { Link } from 'react-router-dom';
23
import { useTranslation } from 'react-i18next';
24
25
+import { isEmpty } from 'lodash';
26
+
27
import { Icon } from '@/components';
28
import { questionLink } from '@/services';
29
import { pathFactory } from '@/router/pathFactory';
@@ -43,7 +45,7 @@ const Index: FC<Props> = ({ id }) => {
43
45
page_size: 5,
44
46
});
47
- if (!data || !data.list) {
48
+ if (!data || isEmpty(data?.list)) {
49
return null;
50
}
51
0 commit comments