Closing the 'edit categories' modal on framework after an edit causes an endless spinner