fix: pass style check

This commit is contained in:
Barf-Vader
2025-06-13 03:06:00 +01:00
parent 8be06bba8b
commit e4a5641eeb
3 changed files with 2 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
<script lang="ts">
import { daysOfWeek } from "$lib";
import Button from "../Button.svelte";
import CrossUrl from "../../assets/cross.svg";
interface Props {
index: number;

View File

@@ -9,7 +9,6 @@
import { onMount } from "svelte";
import { gmapsLoader, daysOfWeek, formatTime, type Table } from "$lib";
import Button from "$lib/components/Button.svelte";
import TagFilter from "$lib/components/inputs/TagFilter.svelte";
const { data } = $props();
const { space, supabase, adminMode } = $derived(data);
@@ -109,7 +108,7 @@
{/if}
<hr />
<div class="subtitle">Opening Times:</div>
{#each Array(7) as _, idx (idx)}
{#each Array(7).keys() as idx (idx)}
{@const entries = timingsPerDay[idx]}
<div class="opening-entry">
<span class="day">{daysOfWeek[idx]}</span>

View File

@@ -137,7 +137,7 @@
if (!spaceImgs || spaceImgs.length < 1) return alert("Please select an image file.");
if (!studySpaceData.building_location) return alert("Please select a building location.");
const { opening_times, ...spacePayload } = studySpaceData;
const { ...spacePayload } = studySpaceData;
const { data: studySpaceInsert, error: studySpaceError } = await supabase
.from("study_spaces")