Fix js error in field schema editing on clicking 'Settings'