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
e9fdc7a0
Commit
e9fdc7a0
authored
Jun 27, 2023
by
StyleZhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/upgrade-nextjs-version' into deploy/dev
parents
0159cdc0
5667bd51
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
index.tsx
web/app/components/datasets/documents/index.tsx
+0
-2
list.tsx
web/app/components/datasets/documents/list.tsx
+1
-1
No files found.
web/app/components/datasets/documents/index.tsx
View file @
e9fdc7a0
...
@@ -140,8 +140,6 @@ const Documents: FC<IDocumentsProps> = ({ datasetId }) => {
...
@@ -140,8 +140,6 @@ const Documents: FC<IDocumentsProps> = ({ datasetId }) => {
router
.
push
(
`/datasets/
${
datasetId
}
/documents/create`
)
router
.
push
(
`/datasets/
${
datasetId
}
/documents/create`
)
}
}
router
.
prefetch
(
`/datasets/
${
datasetId
}
/documents/create`
)
const
isLoading
=
!
documentsRes
&&
!
error
const
isLoading
=
!
documentsRes
&&
!
error
const
handleSaveNotionPageSelected
=
async
(
selectedPages
:
(
DataSourceNotionPage
&
{
workspace_id
:
string
})[])
=>
{
const
handleSaveNotionPageSelected
=
async
(
selectedPages
:
(
DataSourceNotionPage
&
{
workspace_id
:
string
})[])
=>
{
...
...
web/app/components/datasets/documents/list.tsx
View file @
e9fdc7a0
...
@@ -309,7 +309,7 @@ const DocumentList: FC<IDocumentListProps> = ({ documents = [], datasetId, onUpd
...
@@ -309,7 +309,7 @@ const DocumentList: FC<IDocumentListProps> = ({ documents = [], datasetId, onUpd
key=
{
doc
.
id
}
key=
{
doc
.
id
}
className=
{
'border-b border-gray-200 h-8 hover:bg-gray-50 cursor-pointer'
}
className=
{
'border-b border-gray-200 h-8 hover:bg-gray-50 cursor-pointer'
}
onClick=
{
()
=>
{
onClick=
{
()
=>
{
router
.
push
(
`datasets/${datasetId}/documents/${doc.id}`
)
router
.
push
(
`
/
datasets/${datasetId}/documents/${doc.id}`
)
}
}
>
}
}
>
<
td
className=
'text-left align-middle text-gray-500 text-xs'
>
{
doc
.
position
}
</
td
>
<
td
className=
'text-left align-middle text-gray-500 text-xs'
>
{
doc
.
position
}
</
td
>
<
td
className=
{
s
.
tdValue
}
>
<
td
className=
{
s
.
tdValue
}
>
...
...
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