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

[Bug]: Services get unselected when changing state of another category #745

Open
morja opened this issue Oct 24, 2024 · 0 comments
Open
Labels
bug Something isn't working triage yet to be reviewed

Comments

@morja
Copy link

morja commented Oct 24, 2024

Expected Behavior

Changing the state of a category should only affect its child services

Current Behavior

I have two categories next to the necessary one

  categories: {,
    youtube_videos: {
      services: {
        youtube_embed: {
          label: 'Youtube Embed',
          onAccept: () => im.acceptService('youtube_embed'),
          onReject: () => im.rejectService('youtube_embed')
        }
      }
    },
    other: {
      services: {
        newsletter: {
          label: 'Newsletter form',
        },
        payment: {
          label: 'Payment form',
        },
      }
    },
}

When I accept one of the categories and save it. And then I enable another category and then reload the page, the children of the other category get disabled.

Steps to reproduce

  1. Click on one category and save then it. Then it and its children are enabled
  2. Reload the page
  3. Click on another category (either turning it on or off) and save
  4. Reload the page
  5. Then the children of other are turned off again

Proposed fix or additional info.

No response

Version

3.0.1

On which browser do you see the issue?

Chrome

Am I doing something wrong?

@morja morja added the bug Something isn't working label Oct 24, 2024
@github-actions github-actions bot added the triage yet to be reviewed label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage yet to be reviewed
Projects
None yet
Development

No branches or pull requests

1 participant