mirror of https://github.com/langgenius/dify.git
fix: docuemnt and aduio show condition in preview
This commit is contained in:
parent
cad77ce0bf
commit
db9e5665c2
|
|
@ -44,7 +44,7 @@ const ConfigAudio: FC = () => {
|
|||
setFeatures(newFeatures)
|
||||
}, [featuresStore])
|
||||
|
||||
if (!isShowAudioConfig)
|
||||
if (!isShowAudioConfig || (readonly && !isAudioEnabled))
|
||||
return null
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ const ConfigDocument: FC = () => {
|
|||
setFeatures(newFeatures)
|
||||
}, [featuresStore])
|
||||
|
||||
if (!isShowDocumentConfig)
|
||||
if (!isShowDocumentConfig || (readonly && !isDocumentEnabled))
|
||||
return null
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in New Issue