chore: minor fixes
This commit is contained in:
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user