Likes on a post

In my system the property ‘liked’ that you are referring to is going from null to false upon liking. The id that is passed as ‘likesId’ on the picture below is the id of the topic I am trying to like.
Do you have any explanation for this behaviour, or possibly a solution, so that the property returns true as intended, upon posting a like? It seems to be hindered by something.


Thank you