Skip to content

Commit

Permalink
Fix for no meta.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Oct 4, 2021
1 parent 900c825 commit f307e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/Squidex.CLI/Squidex.CLI/Commands/App_Assets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public async Task Import(ImportArguments arguments)

var result = await assets.PostAssetAsync(session.App, parentId, duplicate: arguments.Duplicate, file: fileParameter);

if (result._meta.IsDuplicate == "true")
if (result._meta?.IsDuplicate == "true")
{
log.StepSkipped("duplicate.");
}
Expand Down

0 comments on commit f307e62

Please sign in to comment.