MOB-2297 Don't update categories without changes

line 121 could you move this into `setModalMode()` function?