Skip to content

Commit

Permalink
fix(frontend): Allow importing agent file with empty description (#8670)
Browse files Browse the repository at this point in the history
Check structure of agent file with `obj[key] != null` rather than `!!obj[key]` to allow empty strings
  • Loading branch information
Pwuts authored Nov 18, 2024
1 parent 865e3c0 commit e81083d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const AgentImportForm: React.FC<
);
if (
!["name", "description", "nodes", "links"].every(
(key) => !!obj[key],
(key) => key in obj && obj[key] != null,
)
) {
throw new Error(
Expand Down

0 comments on commit e81083d

Please sign in to comment.