Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #175 from tipisai/feat/add-schedule
Browse files Browse the repository at this point in the history
fix: detail show variable when empty array
  • Loading branch information
Wangtaofeng authored May 6, 2024
2 parents 51a5e5e + 5aa64ad commit 5684641
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ const MarketTipiDetailMobile: FC<IMarketTipiDetailProps> = ({
prompt={aiAgentMarketPlaceInfo?.aiAgent?.prompt}
/>
{Array.isArray(aiAgentMarketPlaceInfo?.aiAgent?.variables) &&
aiAgentMarketPlaceInfo?.aiAgent?.variables && (
aiAgentMarketPlaceInfo?.aiAgent?.variables.length > 0 && (
<Parameters
parameters={aiAgentMarketPlaceInfo?.aiAgent?.variables ?? []}
parameters={aiAgentMarketPlaceInfo?.aiAgent?.variables}
/>
)}
{Array.isArray(aiAgentMarketPlaceInfo?.aiAgent?.knowledge) &&
Expand Down

0 comments on commit 5684641

Please sign in to comment.