mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-23 14:17:46 -04:00
no log: Fix compile errors
This commit is contained in:
parent
65e9a029fe
commit
a87a1fad8f
1 changed files with 3 additions and 3 deletions
|
@ -14,8 +14,8 @@ const SplitKeys = ["Tab", "Enter", " ", ",", ";"];
|
|||
|
||||
export interface ChipsProps {
|
||||
disabled?: boolean;
|
||||
defaultValue?: string[];
|
||||
value?: string[];
|
||||
defaultValue?: readonly string[];
|
||||
value?: readonly string[];
|
||||
onChange?: (v: string[]) => void;
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ export const Chips: FunctionComponent<ChipsProps> = ({
|
|||
disabled,
|
||||
onChange,
|
||||
}) => {
|
||||
const [chips, setChips] = useState<string[]>(() => {
|
||||
const [chips, setChips] = useState<Readonly<string[]>>(() => {
|
||||
if (value) {
|
||||
return value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue