The click handling caused the mutation to be executed twice due to the click handling on the CardActionArea itself. This then caused issues with the set metadata, because the server doesn't prevent storing the same "sourceId" and "meta key" combination twice.