AVAnnotate / admin-client

Application for building AVAnnotate websites
0 stars 0 forks source link

Restructure audiovisual file data structure for UUIDs #12

Closed camdendotlol closed 2 months ago

camdendotlol commented 2 months ago

Summary

Example

Old format

type Event = {
  audiovisual_files: {
    label: string;
    file_url: string;
    duration: number;
  }[]
  // ...
}

New format

type Event = {
    audiovisual_files: {
      [key: string]: {
        label: string;
        file_url: string;
        duration: number
      }
    }
  // ...
}