Fixed JS issue where duplicating a newly created field would lose it's field type setting

Signed-off-by: Elliot Condon <e@elliotcondon.com>