Fixed format of events
This commit is contained in:
@@ -32,14 +32,10 @@ import { formatTime, formatDate } from '@/utils/strings';
|
||||
export default {
|
||||
name: 'WorshipRender',
|
||||
props: {
|
||||
location: {
|
||||
type: Number,
|
||||
config: {
|
||||
type: Object,
|
||||
required: true
|
||||
},
|
||||
orderBy: {
|
||||
type: String,
|
||||
default: 'date ASC'
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -55,10 +51,7 @@ export default {
|
||||
async fetchWorships() {
|
||||
try {
|
||||
const response = await axios.get('/worships/filtered', {
|
||||
params: {
|
||||
location: this.location,
|
||||
orderBy: this.orderBy
|
||||
}
|
||||
params: this.config
|
||||
});
|
||||
this.worships = response.data;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user