Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
9df0dced
Unverified
Commit
9df0dced
authored
Sep 22, 2023
by
Joel
Committed by
GitHub
Sep 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: dataset eslint error (#1221)
parent
724e0537
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
83 deletions
+93
-83
index.tsx
.../components/datasets/documents/detail/embedding/index.tsx
+2
-2
index.tsx
...p/components/datasets/documents/detail/metadata/index.tsx
+89
-79
hit-detail.tsx
web/app/components/datasets/hit-testing/hit-detail.tsx
+2
-2
No files found.
web/app/components/datasets/documents/detail/embedding/index.tsx
View file @
9df0dced
...
@@ -291,8 +291,8 @@ const EmbeddingDetail: FC<Props> = ({ detail, stopPosition = 'top', datasetId: d
...
@@ -291,8 +291,8 @@ const EmbeddingDetail: FC<Props> = ({ detail, stopPosition = 'top', datasetId: d
<
Divider
/>
<
Divider
/>
<
div
className=
{
s
.
previewTip
}
>
{
t
(
'datasetDocuments.embedding.previewTip'
)
}
</
div
>
<
div
className=
{
s
.
previewTip
}
>
{
t
(
'datasetDocuments.embedding.previewTip'
)
}
</
div
>
<
div
className=
{
style
.
cardWrapper
}
>
<
div
className=
{
style
.
cardWrapper
}
>
{
[
1
,
2
,
3
].
map
(
v
=>
(
{
[
1
,
2
,
3
].
map
(
(
v
,
index
)
=>
(
<
SegmentCard
loading=
{
true
}
detail=
{
{
position
:
v
}
as
any
}
/>
<
SegmentCard
key=
{
index
}
loading=
{
true
}
detail=
{
{
position
:
v
}
as
any
}
/>
))
}
))
}
</
div
>
</
div
>
</>
}
</>
}
...
...
web/app/components/datasets/documents/detail/metadata/index.tsx
View file @
9df0dced
This diff is collapsed.
Click to expand it.
web/app/components/datasets/hit-testing/hit-detail.tsx
View file @
9df0dced
...
@@ -89,8 +89,8 @@ const HitDetail: FC<IHitDetailProps> = ({ segInfo, vectorInfo }) => {
...
@@ -89,8 +89,8 @@ const HitDetail: FC<IHitDetailProps> = ({ segInfo, vectorInfo }) => {
<
div
className=
{
s
.
keywordWrapper
}
>
<
div
className=
{
s
.
keywordWrapper
}
>
{
!
segInfo
?.
keywords
?.
length
{
!
segInfo
?.
keywords
?.
length
?
'-'
?
'-'
:
segInfo
?.
keywords
?.
map
((
word
)
=>
{
:
segInfo
?.
keywords
?.
map
((
word
,
index
)
=>
{
return
<
div
className=
{
s
.
keyword
}
>
{
word
}
</
div
>
return
<
div
key=
{
index
}
className=
{
s
.
keyword
}
>
{
word
}
</
div
>
})
}
})
}
</
div
>
</
div
>
</
div
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment