Skip to content

Commit

Permalink
fix(store): "Publish an Agent" flow has a missing default image (#9089)
Browse files Browse the repository at this point in the history
Introduced when making sure initialData was inferred from the agent
object. This has been fixed now
  • Loading branch information
Swiftyos authored Dec 19, 2024
1 parent ca91754 commit d028f5b
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@ export const PublishAgentInfo: React.FC<PublishAgentInfoProps> = ({

React.useEffect(() => {
if (initialData) {
setImages(
initialData.additionalImages
? [initialData.thumbnailSrc, ...initialData.additionalImages]
: initialData.thumbnailSrc
? [initialData.thumbnailSrc]
: [],
);
setImages(initialData.additionalImages || []);
setSelectedImage(initialData.thumbnailSrc || null);
setTitle(initialData.title);
setSubheader(initialData.subheader);
Expand Down

0 comments on commit d028f5b

Please sign in to comment.