Clean up all kinds of typescript issues
This commit is contained in:
@@ -44,7 +44,7 @@ export function getSampleTimeBlocks(): Timeblock[] {
|
||||
for (let i = 0; i <= 30; i++) {
|
||||
const template = templateB;
|
||||
result.push(
|
||||
...boats
|
||||
...boats.value
|
||||
.map((b): Timeblock[] => {
|
||||
return template.blocks.map((t): Timeblock => {
|
||||
return {
|
||||
@@ -126,7 +126,7 @@ export function getSampleReservations(): Reservation[] {
|
||||
};
|
||||
|
||||
return sampleData.map((entry): Reservation => {
|
||||
const boat = <Boat>boatStore.boats.find((b) => b.$id == entry.boat);
|
||||
const boat = <Boat>boatStore.boats.value.find((b) => b.$id == entry.boat);
|
||||
return {
|
||||
id: entry.id,
|
||||
user: entry.user,
|
||||
|
||||
Reference in New Issue
Block a user