Rename global data arrays as plural by default
Easier for each loop and maps as to use singular
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
import Button from '$components/atoms/Button.svelte'
|
||||
import Image from '$components/atoms/Image.svelte'
|
||||
|
||||
const { location, shop } = getContext('global')
|
||||
const { locations, shop } = getContext('global')
|
||||
|
||||
const locationsWithPoster = location
|
||||
const locationsWithPoster = locations
|
||||
.filter((loc: any) => loc.has_poster)
|
||||
.map((loc: any) => loc.name)
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user