fix: Changed filteredStudySpaces from function to string[].

Co-Authored By: Caspar Asaam caspar@dyn3159-95.wlan.ic.ac.uk
This commit is contained in:
TadiosT
2025-06-11 03:40:20 +01:00
parent e9d6db605a
commit 3d95ea3763

View File

@@ -17,7 +17,7 @@
.filter((tag) => allTags.includes(tag))
);
let filteredStudySpaces = $derived(() =>
let filteredStudySpaces = $derived(
selectedTags.length === 0
? studySpaces
: studySpaces.filter((space) => {
@@ -108,7 +108,7 @@
</form>
</div>
{#each filteredStudySpaces() as studySpace (studySpace.id)}
{#each filteredStudySpaces as studySpace (studySpace.id)}
{@const imgUrl =
studySpace.study_space_images.length > 0
? supabase.storage