Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
KonecnyDavid committed Feb 11, 2025
1 parent f257de6 commit bd70485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ export interface DatasetResponse {
readonly perms: string;
readonly shares: string;
readonly project: BaseModel;
readonly experiments: string;
readonly experiments: readonly Experiment[];
readonly dataset_schema: BaseModel;
readonly modified_by: UserSerializerMinimal;
readonly onedata_visit_id: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface ExperimentsProps {
}

const Experiments = ({dataset}: ExperimentsProps) => {
const [experiments, setExperiments] = useState<Experiment[]>(dataset.experiments);
const [experiments, setExperiments] = useState<Experiment[]>([...dataset.experiments]);
const [selectedExperimentId, setSelectedExperimentIdx] = useState<string | null>(null);
const [deletingExperimentId, setDeletingExperimentId] = useState<string | null>(null);

Expand Down

0 comments on commit bd70485

Please sign in to comment.