From 6afbed371ee2e4854218b8ec954307bfbd4960b8 Mon Sep 17 00:00:00 2001 From: Prince0906 Date: Sat, 22 Jun 2024 17:27:59 +0530 Subject: [PATCH] just checking course is number or string --- app/assets/javascripts/components/articles/article_list.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/articles/article_list.jsx b/app/assets/javascripts/components/articles/article_list.jsx index 3b64c58a66..0f781ad2a3 100644 --- a/app/assets/javascripts/components/articles/article_list.jsx +++ b/app/assets/javascripts/components/articles/article_list.jsx @@ -331,7 +331,7 @@ ArticleList.propTypes = { wikis: PropTypes.array, newnessFilterEnabled: PropTypes.bool, trackedStatusFilterEnabled: PropTypes.bool, - course_id: PropTypes.number, + course_id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), limit: PropTypes.number, limitReached: PropTypes.bool, filterArticles: PropTypes.func,