Skip to content

Commit

Permalink
[To Main] DESENG-524: Feedback bugs fixed (#2434)
Browse files Browse the repository at this point in the history
* DESENG-524: Fixing Feedback bugs

* Update Changelog
  • Loading branch information
ratheesh-aot authored Apr 1, 2024
1 parent fba98e9 commit 3d20650
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## March 28, 2024

- **Bug Fix**: Feedback fixes [DESENG-524](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-524)
- Fixed feedback path not updating issue.
- Fixed feedback table grid styles.

## March 27, 2024

- **Bug Fix**: MET - Engagement tab does not revert the filtered out data [DESENG-525](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-525)
Expand Down
3 changes: 2 additions & 1 deletion met-web/src/components/feedback/FeedbackModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export const FeedbackModal = () => {
const handleSubmit = async () => {
setIsSaving(true);
try {
await createFeedback(feedbackFormData);
const formData = { ...feedbackFormData, submission_path: window.location.pathname };
await createFeedback(formData);
dispatch(openNotification({ severity: 'success', text: translate('feedback.notification.success') }));
setIsSubmitted(true);
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions met-web/src/components/feedback/listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const FeedbackListing = () => {
columnSpacing={2}
rowSpacing={1}
>
<Grid item xs={12} lg={10}>
<Grid item xs={12}>
<Stack
direction={{ xs: 'column', md: 'row' }}
spacing={1}
Expand Down Expand Up @@ -176,7 +176,7 @@ const FeedbackListing = () => {
</When>
</Stack>
</Grid>
<Grid item xs={12} lg={10}>
<Grid item xs={12}>
<MetTable
headCells={headCells}
rows={feedbacks}
Expand Down

0 comments on commit 3d20650

Please sign in to comment.