diff --git a/src/services/failureModesTableService.tsx b/src/services/failureModesTableService.tsx index d10f4b90..621e77b1 100644 --- a/src/services/failureModesTableService.tsx +++ b/src/services/failureModesTableService.tsx @@ -17,7 +17,7 @@ import {handleServerError} from "@services/utils/responseUtils"; export const findAll = async (): Promise => { try { const response = await axiosClient.get( - '/failureModesTable', + '/failureModesTable/summaries', { headers: authHeaders() } @@ -133,6 +133,7 @@ export const createAggregate = async (table: CreateFailureModesTable): Promise, rpnsMap: Map): FailureModesRow[] => { + // this transformation does not follow the FMEA generation rules established in issues/46 return Array.from(eventPathsMap).map(([key, path]) => { const rpn = rpnsMap.get(key) return { diff --git a/src/services/faultTreeService.tsx b/src/services/faultTreeService.tsx index f5d708ee..ece59294 100644 --- a/src/services/faultTreeService.tsx +++ b/src/services/faultTreeService.tsx @@ -15,7 +15,7 @@ import {handleServerError} from "@services/utils/responseUtils"; export const findAll = async (): Promise => { try { const response = await axiosClient.get( - '/faultTrees', + '/faultTrees/summaries', { headers: authHeaders() } diff --git a/src/services/systemService.tsx b/src/services/systemService.tsx index ad9b8afe..58717c28 100644 --- a/src/services/systemService.tsx +++ b/src/services/systemService.tsx @@ -11,7 +11,7 @@ import { FailureMode } from "@models/failureModeModel"; export const findAll = async (): Promise => { try { const response = await axiosClient.get( - '/systems', + '/systems/summaries', { headers: authHeaders() }