1
0

chore: minor fixes

This commit is contained in:
Dominik Pschenitschni
2022-09-05 18:32:42 +02:00
parent 7d4ba6249e
commit 49f3b928cb
5 changed files with 7 additions and 6 deletions

View File

@ -15,7 +15,7 @@ import {AUTH_TYPES} from '@/store/types'
import type { IUserSettings } from '@/modelTypes/IUserSettings'
const defaultSettings = settings => {
function defaultSettings(settings: Partial<IUserSettings>) {
if (typeof settings.weekStart === 'undefined' || settings.weekStart === '') {
settings.weekStart = 0
}

View File

@ -222,11 +222,11 @@ const kanbanStore : Module<KanbanState, RootStoreState> = {
getters: {
getBucketById(state) {
return (bucketId) => findById(state.buckets, bucketId)
return (bucketId: IBucket['id']) => findById(state.buckets, bucketId)
},
getTaskById(state) {
return (id) => {
return (id: ITask['id']) => {
const { bucketIndex, taskIndex } = getTaskIndicesById(state, id)