Skip to content

Commit 32c3ea6

Browse files
committed
fix: lint
1 parent 44c4edf commit 32c3ea6

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

src/apps/review/src/lib/components/Scorecard/ScorecardViewer/ScorecardQuestion/AiFeedback/AiFeedback.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ const AiFeedback: FC<AiFeedbackProps> = props => {
4040
await createFeedbackComment(workflowId as string, workflowRun?.id as string, feedback?.id, {
4141
content,
4242
})
43-
await mutate(`${EnvironmentConfig.API.V6}/workflows/${workflowId}/runs/${workflowRun?.id}/items?[${workflowRun?.status}]`)
43+
await mutate(`
44+
${EnvironmentConfig.API.V6}/workflows/${workflowId}/runs/${workflowRun?.id}/items?[${workflowRun?.status}]
45+
`)
4446
setShowReply(false)
4547
}, [workflowId, workflowRun?.id, feedback?.id])
4648

src/apps/review/src/lib/components/Scorecard/ScorecardViewer/ScorecardQuestion/AiFeedbackActions/AiFeedbackActions.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export const AiFeedbackActions: FC<AiFeedbackActionsProps> = props => {
136136
}
137137

138138
try {
139+
// eslint-disable-next-line max-len
139140
const itemsKey = `${EnvironmentConfig.API.V6}/workflows/${workflowId}/runs/${workflowRun.id}/items?[${workflowRun?.status}]`
140141
mutate(itemsKey, (items: any) => {
141142
if (!items || !Array.isArray(items)) return items
@@ -202,6 +203,7 @@ export const AiFeedbackActions: FC<AiFeedbackActionsProps> = props => {
202203
setUpVotes(prevUp)
203204
setDownVotes(prevDown)
204205

206+
// eslint-disable-next-line max-len
205207
const itemsKey = `${EnvironmentConfig.API.V6}/workflows/${workflowId}/runs/${workflowRun.id}/items?[${workflowRun?.status}]`
206208
await mutate(itemsKey)
207209
} finally {
@@ -262,6 +264,7 @@ export const AiFeedbackActions: FC<AiFeedbackActionsProps> = props => {
262264
downVote: down,
263265
upVote: up,
264266
})
267+
// eslint-disable-next-line max-len
265268
await mutate(`${EnvironmentConfig.API.V6}/workflows/${workflowId}/runs/${workflowRun?.id}/items?[${workflowRun?.status}]`)
266269
} catch (err) {
267270
setUserVote(prevUserVote)

src/apps/review/src/lib/components/Scorecard/ScorecardViewer/ScorecardQuestion/AiFeedbackComments/AiFeedbackComment.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,19 @@ export const AiFeedbackComment: FC<AiFeedbackCommentProps> = props => {
3636
content,
3737
parentId: comment.id,
3838
})
39-
await mutate(`${EnvironmentConfig.API.V6}/workflows/${workflowId}/runs/${workflowRun?.id}/items?[${workflowRun?.status}]`)
39+
await mutate(`
40+
${EnvironmentConfig.API.V6}/workflows/${workflowId}/runs/${workflowRun?.id}/items?[${workflowRun?.status}]
41+
`)
4042
setShowReply(false)
4143
}, [workflowId, workflowRun?.id, props.feedback?.id])
4244

4345
const onEditReply = useCallback(async (content: string, comment: AiFeedbackCommentType) => {
4446
await updateRunItemComment(workflowId as string, workflowRun?.id as string, props.feedback?.id, comment.id, {
4547
content,
4648
})
47-
await mutate(`${EnvironmentConfig.API.V6}/workflows/${workflowId}/runs/${workflowRun?.id}/items?[${workflowRun?.status}]`)
49+
await mutate(`
50+
${EnvironmentConfig.API.V6}/workflows/${workflowId}/runs/${workflowRun?.id}/items?[${workflowRun?.status}]
51+
`)
4852
setEditMode(false)
4953
}, [workflowId, workflowRun?.id, props.feedback?.id])
5054

0 commit comments

Comments
 (0)