Skip to content

Commit

Permalink
remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
arukompas committed Jul 29, 2023
1 parent 82f5b51 commit a352d1d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions resources/js/stores/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,6 @@ export const useFileStore = defineStore({
},

setAvailableFileTypes(folders) {
// folders is a collection of folders, each containing a collection of files.
// each file has a "type" property, which we want to collect into a new array
// and only keep the unique values. The "type" property is an object, containing
// a "value" (string) property and "name" (string) property.
// The unique types should also keep a count of the files found of that type.

const fileTypes = folders.flatMap(folder => folder.files.map(file => file.type));
const uniqueFileTypes = [...new Set(fileTypes.map(fileType => fileType.value))];

Expand Down

0 comments on commit a352d1d

Please sign in to comment.