Skip to content
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

pushing to state array overwriting previous value #482

Open
joe-p opened this issue May 1, 2024 · 1 comment
Open

pushing to state array overwriting previous value #482

joe-p opened this issue May 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@joe-p
Copy link
Contributor

joe-p commented May 1, 2024

if (this.user2tasks(task.app.creator).exists) {
  this.user2tasks(task.app.creator).value.push(task.app);
} else {
  const newWhitelist: AppID[] = [task.app];
  this.user2tasks(task.app.creator).value = newWhitelist;
}

Reported by Ludo on discord

does not work somehow as when i try to add the second value to the list it replaces the first value

@joe-p joe-p added the bug Something isn't working label May 1, 2024
@joe-p joe-p added this to the Stable Release milestone May 1, 2024
@joe-p
Copy link
Contributor Author

joe-p commented May 3, 2024

So far I can't seem to reproduce. Will wait for further feedback from Ludo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: TODO
Development

No branches or pull requests

1 participant