feat: rename lists to projects #2697

Closed
konrad wants to merge 53 commits from feature/rename-lists-to-projects into main
1 changed files with 3 additions and 1 deletions
Showing only changes of commit a058b39aba - Show all commits

View File

@ -342,9 +342,11 @@ export const useTaskStore = defineStore('task', () => {
{ project: string, projectId: IProject['id'] }) {
let foundProjectId = null
console.log('find', {projectName, projectId})
konrad marked this conversation as resolved Outdated

Here is some leftover

Here is some leftover

whoops, removed.

whoops, removed.
// 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
if (projectName !== null) {
if (typeof projectName !== 'undefined' && projectName !== null) {
konrad marked this conversation as resolved Outdated

Is this a changed new condition or are we reverting here something that should only check for !== null?

Is this a changed new condition or are we reverting here something that should only check for `!== null`?

I discovered how it failed when projectName was undefined and it should behave the same as the if. It's a changed new condition.

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)
foundProjectId = project === null ? null : project.id
}