Arduino MKR ZERO blink sketch only works when uploaded from online editor

On MKR ZERO the onboard LED is connected to a dedicated pin (32). In both sketches (IDE and web editor) LED_BUILTIN was used. When I changed pin number to 32 from LED_BUILTIN, LED blinks after uploading the sketch from Arduino Web editor and doesn't blink when I uploaded it from IDE.