Skip to content

Commit

Permalink
fix: Client-side exception occurs when adding a filter to rate limit …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 29, 2024
1 parent 5626440 commit 34af636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/components/array-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type Props = {
setSelected: (v: string[]) => void;
};

export const ArrayInput: React.FC<Props> = ({ title, placeholder, selected, setSelected }) => {
export const ArrayInput: React.FC<Props> = ({ title, placeholder, selected = [], setSelected }) => {
const inputRef = React.useRef<HTMLInputElement>(null);
const [inputValue, setInputValue] = React.useState("");

Expand Down

0 comments on commit 34af636

Please sign in to comment.