Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/typescript/models/user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
color_level!: number;

@Column({
type: DataType.ENUM("Bird", "Bunny", "Cat", "Dog", "Small Animal"),
type: DataType.ARRAY(DataType.ENUM("Bird", "Bunny", "Cat", "Dog", "Small Animal")),

Check failure on line 32 in backend/typescript/models/user.model.ts

View workflow job for this annotation

GitHub Actions / run-lint

Replace `DataType.ENUM("Bird",·"Bunny",·"Cat",·"Dog",·"Small·Animal")` with `⏎······DataType.ENUM("Bird",·"Bunny",·"Cat",·"Dog",·"Small·Animal"),⏎····`
allowNull: false,
})
animal_tags!: [AnimalTag];
animal_tags!: AnimalTag[];

@Column({ type: DataType.BOOLEAN })
can_see_all_logs?: boolean | null;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/common/MultiSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ReactComponent as ExpandIcon } from "../../assets/icons/expand.svg";
interface MultiSelectProps<T> {
values: T[];
onSelect: (values: T[]) => void;
selected: T[];
selected?: T[];
placeholder?: string;
label?: string;
error?: boolean;
Expand All @@ -27,7 +27,7 @@ interface MultiSelectProps<T> {
const MultiSelect = <T extends string | number>({
values,
onSelect,
selected,
selected = [],
placeholder = "Click for options",
label,
error = false,
Expand Down
Loading