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
7cfa76d0
Commit
7cfa76d0
authored
Jun 19, 2023
by
StyleZhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: dataset document add pages tip
parent
380f25bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
index.tsx
web/app/components/datasets/create/step-one/index.tsx
+3
-1
No files found.
web/app/components/datasets/create/step-one/index.tsx
View file @
7cfa76d0
...
@@ -12,6 +12,7 @@ import type { DataSourceNotionPage } from '@/models/common'
...
@@ -12,6 +12,7 @@ import type { DataSourceNotionPage } from '@/models/common'
import
{
DataSourceType
}
from
'@/models/datasets'
import
{
DataSourceType
}
from
'@/models/datasets'
import
Button
from
'@/app/components/base/button'
import
Button
from
'@/app/components/base/button'
import
{
NotionPageSelector
}
from
'@/app/components/base/notion-page-selector'
import
{
NotionPageSelector
}
from
'@/app/components/base/notion-page-selector'
import
{
useDatasetDetailContext
}
from
'@/context/dataset-detail'
type
IStepOneProps
=
{
type
IStepOneProps
=
{
datasetId
?:
string
datasetId
?:
string
...
@@ -58,6 +59,7 @@ const StepOne = ({
...
@@ -58,6 +59,7 @@ const StepOne = ({
notionPages
=
[],
notionPages
=
[],
updateNotionPages
,
updateNotionPages
,
}:
IStepOneProps
)
=>
{
}:
IStepOneProps
)
=>
{
const
{
dataset
}
=
useDatasetDetailContext
()
const
[
showModal
,
setShowModal
]
=
useState
(
false
)
const
[
showModal
,
setShowModal
]
=
useState
(
false
)
const
[
showFilePreview
,
setShowFilePreview
]
=
useState
(
true
)
const
[
showFilePreview
,
setShowFilePreview
]
=
useState
(
true
)
const
[
currentNotionPage
,
setCurrentNotionPage
]
=
useState
<
Page
|
undefined
>
()
const
[
currentNotionPage
,
setCurrentNotionPage
]
=
useState
<
Page
|
undefined
>
()
...
@@ -77,7 +79,7 @@ const StepOne = ({
...
@@ -77,7 +79,7 @@ const StepOne = ({
setCurrentNotionPage
(
undefined
)
setCurrentNotionPage
(
undefined
)
}
}
const
shouldShowDataSourceTypeList
=
!
datasetId
||
(
datasetId
&&
!
data
SourceT
ype
)
const
shouldShowDataSourceTypeList
=
!
datasetId
||
(
datasetId
&&
!
data
set
?.
data_source_t
ype
)
return
(
return
(
<
div
className=
'flex w-full h-full'
>
<
div
className=
'flex w-full h-full'
>
...
...
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