Skip to content

Commit

Permalink
OP-2072: Fixed Issue wihth invalid UUID format in bundle table
Browse files Browse the repository at this point in the history
  • Loading branch information
dborowiecki committed Sep 27, 2024
1 parent 6cdfd6c commit fb0df92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function fetchContributionPlanBundles(params) {

export function fetchContributionPlanBundle(contributionPlanBundleId, filters=[]) {
let filter = !!contributionPlanBundleId
? `id: "${contributionPlanBundleId}"`
? `id: "${decodeId(contributionPlanBundleId)}"`
: "";
filters.push(filter)
const payload = formatPageQuery(
Expand Down
5 changes: 4 additions & 1 deletion src/components/ContributionPlanBundleContributionPlans.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import DeleteIcon from '@material-ui/icons/Delete';
import { DEFAULT_PAGE_SIZE, ROWS_PER_PAGE_OPTIONS } from "../constants";
import CreateContributionPlanBundleDetailsDialog from "../dialogs/CreateContributionPlanBundleDetailsDialog";
import UpdateContributionPlanBundleDetailsDialog from "../dialogs/UpdateContributionPlanBundleDetailsDialog";
import {
decodeId,
} from "@openimis/fe-core";

const styles = theme => ({
tableTitle: theme.table.title,
Expand Down Expand Up @@ -48,7 +51,7 @@ class ContributionPlanBundleContributionPlans extends PagedDataHandler {
let params = [];
if (!!this.props.contributionPlanBundleId) {
params.push("isDeleted: false");
params.push(`contributionPlanBundle_Id: "${this.props.contributionPlanBundleId}"`);
params.push(`contributionPlanBundle_Id: "${decodeId(this.props.contributionPlanBundleId)}"`);
return params;
}
return null;
Expand Down

0 comments on commit fb0df92

Please sign in to comment.