Filter issue with reference field

As screenshot, I have a filter with reference field below the line console.log(“1” + “pulse”), but that never came in dataset filter. After adding few logs, it appears that log 2 is executed before log 1, meaning it shows “2”, then “1” in developer console, so that makes reference field “pulseCode” filter never included in dataset. Can anybody help ? Thanks in advance.