Skip to content

Commit

Permalink
(update) : showEmbeddings enable only when the enableAI flag is true
Browse files Browse the repository at this point in the history
  • Loading branch information
sohitkumar committed Oct 22, 2024
1 parent 600e157 commit 136be8c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/features/default/src/Views/Resources/ViewResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ const ViewResource = (props) => {
index={index}
name={item?.url ? item.url : tempFileName}
// size={null}
showEmbedding={true}
showEmbedding={globalConfig.enableAI ? true : false}
collections={item?.collections}
url={item?.type === "file" ? item?.file : item?.url}
id={item?.id}
Expand All @@ -423,7 +423,7 @@ const ViewResource = (props) => {
index={index}
name={item?.url ? item.url : tempFileName}
// size={null}
showEmbedding={true}
showEmbedding={globalConfig.enableAI ? true : false}
collections={item?.collections}
url={item?.type === "file" ? item?.file : item?.url}
id={item?.id}
Expand All @@ -445,7 +445,7 @@ const ViewResource = (props) => {
index={index}
name={item?.url ? item.url : tempFileName}
// size={null}
showEmbedding={true}
showEmbedding={globalConfig.enableAI ? true : false}
collections={item?.collections}
url={item?.type === "file" ? item?.file : item?.url}
id={item?.id}
Expand All @@ -467,7 +467,7 @@ const ViewResource = (props) => {
index={index}
name={item?.url ? item.url : tempFileName}
// size={null}
showEmbedding={true}
showEmbedding={globalConfig.enableAI ? true : false}
url={item?.type === "file" ? item?.file : item?.url}
id={item?.id}
type={item?.type}
Expand All @@ -488,7 +488,7 @@ const ViewResource = (props) => {
index={index}
name={item?.url ? item.url : tempFileName}
// size={null}
showEmbedding={true}
showEmbedding={globalConfig.enableAI ? true : false}
url={item?.type === "file" ? item?.file : item?.url ?? item?.file}
id={item?.id}
type={item?.type}
Expand Down

0 comments on commit 136be8c

Please sign in to comment.