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

fix: language toggle not working for company update form #1964

Conversation

tomudding
Copy link
Member

Description

This was because company-admin.js overwrites the Company from company-create.js. Resolved by removing company-create.js and moving the logic to company-admin.js (now under Company.Admin instead of Company).

Related issues/external references

Fixes GH-1963.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation improvement (no changes to code)
  • Other (please specify)

This was because `company-admin.js` overwrites the `Company` from
`company-create.js`. Resolved by removing `company-create.js` and moving the
logic to `company-admin.js` (now under `Company.Admin` instead of `Company`).
@tomudding
Copy link
Member Author

It appears to have been broken since changes in GH-1785.

@tomudding tomudding merged commit 1efd96a into GEWIS:main Jan 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language toggles do not update company form when editing a company
1 participant