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

Error when viewing ontologies with views in Slices #161

Closed
alexskr opened this issue Sep 26, 2024 · 0 comments
Closed

Error when viewing ontologies with views in Slices #161

alexskr opened this issue Sep 26, 2024 · 0 comments
Assignees
Labels

Comments

@alexskr
Copy link
Member

alexskr commented Sep 26, 2024

Error when viewing ontologies with views in Slices:

FrozenError - can't modify frozen Array: [#<LinkedData::Models::Ontology:0x00005559335e64b0 
    ...
        /srv/ontoportal/ontologies_api/releases/20240916222827/helpers/slices_helper.rb:15:in `delete_if'
        /srv/ontoportal/ontologies_api/releases/20240916222827/helpers/slices_helper.rb:15:in `filter_for_slice'
        /srv/ontoportal/ontologies_api/releases/20240916222827/helpers/application_helper.rb:128:in `reply'
@alexskr alexskr added the bug label Sep 26, 2024
@alexskr alexskr self-assigned this Sep 26, 2024
@alexskr alexskr changed the title error showing ontology containing views in slices. Error when viewing ontologies with views in Slices Sep 26, 2024
alexskr added a commit that referenced this issue Sep 27, 2024
to avoid modifying the original array, which prevents issues with frozen arrays,
fixes #161 "FrozenError - can't modify frozen Array" (part 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant