-
Notifications
You must be signed in to change notification settings - Fork 2.7k
autoAddBoardId should always be defined as "none" or board_id #4149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@KevinBrack - in case you want to take a look, may overlap with your recent work on the checkbox setting |
|
This begs the bigger question - should |
|
You're right, it should never be null or undefined. Maybe you had leftover state from a prev version? I've also noticed some weirdness with hot module reloading and the RTK cache. Originally I used |
|
The remaining places where we are checking if the board id is falsy are from me missing those spots when rebasing the multi select pr. I'll do another pass and update this pr. |
psychedelicious
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this andd hopefully autoAddBoardId is never not a string again
|
Definitely |
|
NoBoardBoard.tsx was using board undefined here. When I set up auto add board on click I used the same syntax that was there. Is this supposed to be 'none'? |
|
@KevinBrack No, you're good - it was supposed to be |
What type of PR is this? (check all applicable)
Have you discussed this change with the InvokeAI team?
Have you updated all relevant documentation?
Description
I'm not positive that I did this right - but I was running into issues locally where
autoAddBoardIdwasnull, which it seems is an unexpected state. It was getting sent as aboard_idparam when creating an upload in the "uncategorized" view. It seems thatautoAddBoardIdshould always be defined, and that if a board is not selected, it should always be "none" - never null or undefined.Related Tickets & Documents
QA Instructions, Screenshots, Recordings
Added/updated tests?
have not been included
[optional] Are there any post deployment tasks we need to perform?