From 34af636019bbcbb5ca33d34a945a351eaf29dc0e Mon Sep 17 00:00:00 2001 From: RajuGangitla Date: Tue, 29 Oct 2024 17:21:50 +0530 Subject: [PATCH] fix: Client-side exception occurs when adding a filter to rate limit logs table with no data (#2542) * fix:changed the permission view * fixed issue comments * [autofix.ci] apply automated fixes * removed font * added default value --------- Co-authored-by: Andreas Thomas Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- apps/dashboard/components/array-input.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/components/array-input.tsx b/apps/dashboard/components/array-input.tsx index 9a8930b007..1c3afe92f5 100644 --- a/apps/dashboard/components/array-input.tsx +++ b/apps/dashboard/components/array-input.tsx @@ -14,7 +14,7 @@ type Props = { setSelected: (v: string[]) => void; }; -export const ArrayInput: React.FC = ({ title, placeholder, selected, setSelected }) => { +export const ArrayInput: React.FC = ({ title, placeholder, selected = [], setSelected }) => { const inputRef = React.useRef(null); const [inputValue, setInputValue] = React.useState("");