fix(ui): fixes edit pane on case type #5507
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request addresses an issue with the edit pane in the case type UI. The changes ensure that the project and incident project are correctly fetched and assigned, and updates the way project IDs are handled across different components.
Changes
The main changes include:
NewEditSheet.vue
:project
andincidentProject
within thecreated
lifecycle hook. The code now correctly fetches and assigns the project data fetched from the API.IncidentTypeSelect.vue
:project_id
assignment, ensuring that the correct project is always applied.ServiceSelect.vue
:project_id
in filter options, changing it from a map operation to direct access, which is more efficient and accurate.createParametersFromTableOptions
to specify context.Previous behavior
Screen.Recording.2024-11-20.at.5.34.16.PM.mov