chore: clean up
This commit is contained in:
parent
6db99c9e37
commit
5f0800760f
3 changed files with 1 additions and 20 deletions
|
|
@ -460,13 +460,6 @@ watch(
|
|||
}
|
||||
)
|
||||
|
||||
watch(
|
||||
() => pendingInvites,
|
||||
() => {
|
||||
console.log(pendingInvites)
|
||||
}
|
||||
)
|
||||
|
||||
const removeInvitee = async (id: string) => {
|
||||
const result = await revokeTeamInvitation(id)()
|
||||
if (E.isLeft(result)) {
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, watchEffect } from "@nuxtjs/composition-api"
|
||||
import { ref } from "@nuxtjs/composition-api"
|
||||
import * as E from "fp-ts/Either"
|
||||
import { useGQLQuery } from "~/helpers/backend/GQLClient"
|
||||
import {
|
||||
|
|
@ -117,10 +117,6 @@ const myTeams = useGQLQuery<
|
|||
pollDuration: 5000,
|
||||
})
|
||||
|
||||
watchEffect(() => {
|
||||
console.log(myTeams)
|
||||
})
|
||||
|
||||
const displayModalAdd = (shouldDisplay: boolean) => {
|
||||
showModalAdd.value = shouldDisplay
|
||||
}
|
||||
|
|
|
|||
|
|
@ -240,15 +240,12 @@ export const useGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
|
|||
isStale.value = false
|
||||
|
||||
const invalidateStops = args.updateSubs!.map((sub) => {
|
||||
console.log("create sub")
|
||||
|
||||
return wonkaPipe(
|
||||
client.value.executeSubscription(sub),
|
||||
onEnd(() => {
|
||||
if (source.value) execute()
|
||||
}),
|
||||
subscribe(() => {
|
||||
console.log("invalidate!")
|
||||
return execute()
|
||||
})
|
||||
).unsubscribe
|
||||
|
|
@ -260,7 +257,6 @@ export const useGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
|
|||
onEnd(() => {
|
||||
loading.value = false
|
||||
isStale.value = false
|
||||
console.log("end")
|
||||
}),
|
||||
subscribe((res) => {
|
||||
if (res.operation.key === request.value.key) {
|
||||
|
|
@ -323,10 +319,6 @@ export const useGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
|
|||
execute,
|
||||
})
|
||||
|
||||
watchEffect(() => {
|
||||
console.log(JSON.stringify(response))
|
||||
})
|
||||
|
||||
return response
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue