From 064f77fc985f6fef964d97321128f5e7b1722081 Mon Sep 17 00:00:00 2001 From: Spencer Stolworthy Date: Fri, 30 Oct 2020 14:15:28 -0500 Subject: [PATCH] Commit message hotfix (#356) * add date to config json to avoid caching * fixed syntax error on qs * added commit message * fixed tests --- src/routes/engagement_details/engagement_details.tsx | 8 ++++++-- .../implementations/faked_engagement_service/index.ts | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/routes/engagement_details/engagement_details.tsx b/src/routes/engagement_details/engagement_details.tsx index 75b33a5e9..01435d70b 100644 --- a/src/routes/engagement_details/engagement_details.tsx +++ b/src/routes/engagement_details/engagement_details.tsx @@ -34,7 +34,6 @@ export const EngagementDetailView = () => { const { engagementFormConfig, - saveEngagement, getConfig, createEngagementPoll, error: engagementFormRequestError, @@ -44,7 +43,12 @@ export const EngagementDetailView = () => { missingRequiredFields, } = useEngagements(); - const { currentChanges, updateEngagementFormField, clearCurrentChanges } = useEngagementForm() + const { + saveChanges: saveEngagement, + currentChanges, + updateEngagementFormField, + clearCurrentChanges, + } = useEngagementForm(); useEffect(() => { let engagementPoll; if (currentEngagement?.project_name && currentEngagement?.customer_name) { diff --git a/src/services/engagement_service/implementations/faked_engagement_service/index.ts b/src/services/engagement_service/implementations/faked_engagement_service/index.ts index bdae5e69a..f43fde1e0 100644 --- a/src/services/engagement_service/implementations/faked_engagement_service/index.ts +++ b/src/services/engagement_service/implementations/faked_engagement_service/index.ts @@ -12,7 +12,7 @@ export class FakedEngagementService implements EngagementService { async createEngagement(data: Engagement): Promise { return data; } - async saveEngagement(data: Engagement): Promise { + async saveEngagement(data: Engagement, message: string): Promise { return data as Engagement; } async launchEngagement(data: any): Promise {