mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
lint fixes
This commit is contained in:
parent
5f4a973e2a
commit
851dd2e3e6
@ -145,7 +145,7 @@ export default {
|
|||||||
{ name: 'deleteRoom', title: 'Delete Room' },
|
{ name: 'deleteRoom', title: 'Delete Room' },
|
||||||
*/
|
*/
|
||||||
],
|
],
|
||||||
|
|
||||||
showDemoOptions: true,
|
showDemoOptions: true,
|
||||||
responsiveBreakpoint: 600,
|
responsiveBreakpoint: 600,
|
||||||
rooms: [],
|
rooms: [],
|
||||||
@ -170,8 +170,8 @@ export default {
|
|||||||
userId: this.singleRoomId,
|
userId: this.singleRoomId,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(({data: { CreateRoom }}) => {
|
.then(({ data: { CreateRoom } }) => {
|
||||||
this.fetchRooms({room: CreateRoom})
|
this.fetchRooms({ room: CreateRoom })
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
this.$toast.error(error)
|
this.$toast.error(error)
|
||||||
@ -192,8 +192,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async fetchRooms({ room } = {}){
|
async fetchRooms({ room } = {}) {
|
||||||
console.log(room)
|
|
||||||
this.roomsLoaded = false
|
this.roomsLoaded = false
|
||||||
const offset = this.roomPage * this.roomPageSize
|
const offset = this.roomPage * this.roomPageSize
|
||||||
try {
|
try {
|
||||||
@ -209,8 +208,6 @@ export default {
|
|||||||
fetchPolicy: 'no-cache',
|
fetchPolicy: 'no-cache',
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(Room)
|
|
||||||
const rooms = []
|
|
||||||
const newRooms = Room.map((r) => {
|
const newRooms = Room.map((r) => {
|
||||||
return {
|
return {
|
||||||
...r,
|
...r,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user