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("");