feat: add modelTypes
This commit is contained in:
@ -156,7 +156,7 @@ import {calculateItemPosition} from '../../helpers/calculateItemPosition'
|
||||
import type { ITask } from '@/models/task'
|
||||
|
||||
function sortTasks(tasks: ITask[]) {
|
||||
if (tasks === null || tasks === []) {
|
||||
if (tasks === null || Array.isArray(tasks) && tasks.length === 0) {
|
||||
return
|
||||
}
|
||||
return tasks.sort((a, b) => {
|
||||
|
@ -170,6 +170,7 @@ import {useStore} from '@/store'
|
||||
import TeamService from '@/services/team'
|
||||
import TeamMemberService from '@/services/teamMember'
|
||||
import UserService from '@/services/user'
|
||||
|
||||
import {RIGHTS as Rights} from '@/constants/rights'
|
||||
|
||||
import Multiselect from '@/components/input/multiselect.vue'
|
||||
|
Reference in New Issue
Block a user