diff --git a/platform/lib/platform/material.ex b/platform/lib/platform/material.ex index caa229030..6139793f5 100644 --- a/platform/lib/platform/material.ex +++ b/platform/lib/platform/material.ex @@ -346,7 +346,8 @@ defmodule Platform.Material do with false <- Enum.member?([:owner, :manager], user_project_membership.role), new_tags_json <- System.get_env("AUTOTAG_USER_INCIDENTS"), false <- is_nil(new_tags_json) or String.trim(new_tags_json) == "", - {:ok, new_tags} <- Jason.decode(new_tags_json) do + {:ok, new_tags} <- Jason.decode(new_tags_json) + false <- Enum.empty?(new_tags) do {:ok, new_media} = update_media_attribute_audited( media,