MOB-2297 Don't update categories without changes

there is not `int` type in javascript