fix: loading labels after login

This commit is contained in:
kolaente 2021-10-17 17:06:28 +02:00
parent ae971b23bc
commit 1d46b85170
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -4,8 +4,8 @@ import { success } from '@/message'
import {i18n} from '@/i18n'
import {getLabelsByIds, filterLabelsByQuery} from '@/helpers/labels'
const labelService = new LabelService()
async function getAllLabels(page = 1) {
const labelService = new LabelService()
const labels = await labelService.getAll({}, {}, page)
if (page < labelService.totalPages) {
const nextLabels = await getAllLabels(page + 1)