fix: remove obsolete watchEffect (#1795)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1795 Reviewed-by: konrad <k@knt.li> Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de> Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
parent
e0023b14e8
commit
9c2438026b
1 changed files with 3 additions and 10 deletions
|
@ -47,7 +47,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {ref, computed, watch, watchEffect} from 'vue'
|
||||
import {ref, computed, watch} from 'vue'
|
||||
import {useRoute} from 'vue-router'
|
||||
|
||||
import Message from '@/components/misc/message.vue'
|
||||
|
@ -95,17 +95,10 @@ const currentList = computed(() => {
|
|||
// of it, most likely due to the rights not being properly populated.
|
||||
watch(
|
||||
() => props.listId,
|
||||
(listId) => {
|
||||
loadList(listId)
|
||||
},
|
||||
{
|
||||
immediate: true,
|
||||
},
|
||||
listId => loadList(listId),
|
||||
{immediate: true},
|
||||
)
|
||||
|
||||
// call the method again if the listId changes
|
||||
watchEffect(() => loadList(props.listId))
|
||||
|
||||
useTitle(() => currentList.value.id ? getListTitle(currentList.value) : '')
|
||||
|
||||
async function loadList(listIdToLoad: number) {
|
||||
|
|
Loading…
Reference in a new issue