feat: rename lists to projects #2697
|
@ -342,9 +342,11 @@ export const useTaskStore = defineStore('task', () => {
|
||||||
{ project: string, projectId: IProject['id'] }) {
|
{ project: string, projectId: IProject['id'] }) {
|
||||||
let foundProjectId = null
|
let foundProjectId = null
|
||||||
|
|
||||||
|
console.log('find', {projectName, projectId})
|
||||||
konrad marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
// Uses the following ways to get the project id of the new task:
|
// Uses the following ways to get the project id of the new task:
|
||||||
// 1. If specified in quick add magic, look in store if it exists and use it if it does
|
// 1. If specified in quick add magic, look in store if it exists and use it if it does
|
||||||
if (projectName !== null) {
|
if (typeof projectName !== 'undefined' && projectName !== null) {
|
||||||
konrad marked this conversation as resolved
Outdated
dpschen
commented
Is this a changed new condition or are we reverting here something that should only check for Is this a changed new condition or are we reverting here something that should only check for `!== null`?
konrad
commented
I discovered how it failed when I discovered how it failed when `projectName` was undefined and it should behave the same as the if. It's a changed new condition.
|
|||||||
const project = projectStore.findProjectByExactname(projectName)
|
const project = projectStore.findProjectByExactname(projectName)
|
||||||
foundProjectId = project === null ? null : project.id
|
foundProjectId = project === null ? null : project.id
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user
Here is some leftover
whoops, removed.