Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
gitri-ms committed Oct 2, 2023
1 parent 8933b6b commit 6ef1340
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/chat/plan-viewer/PlanViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const PlanViewer: React.FC<PlanViewerProps> = ({ message, messageIndex })
plan={plan}
setPlan={setPlan}
planState={planState}
description={getPlanGoal((parsedContent.userIntent ?? parsedContent.originalUserInput) ?? parsedContent.proposedPlan.description)}
description={getPlanGoal(parsedContent.userIntent ?? parsedContent.originalUserInput ?? parsedContent.proposedPlan.description)}
/>
{planState === PlanState.PlanApprovalRequired && (
<>
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/chat/tabs/PlansTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function useTable(planMessages: IChatMessage[], setChatTab: () => void) {
const items = planMessages
.map((message, index) => {
const parsedPlan = JSON.parse(message.content) as ProposedPlan;
const plangoal = (parsedPlan.userIntent ?? parsedPlan.originalUserInput) ?? parsedPlan.proposedPlan.description;
const plangoal = parsedPlan.userIntent ?? parsedPlan.originalUserInput ?? parsedPlan.proposedPlan.description;

return {
index: index,
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/libs/models/Plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface ProposedPlan {
state: PlanState;

// User input that prompted the plan
originalUserInput: string;
originalUserInput?: string;

// User intent to serves as goal of plan.
userIntent?: string;
Expand Down

0 comments on commit 6ef1340

Please sign in to comment.