View Count not working

Hi Tomer,
I¨m having the same problem.
So you says I can just delete “ifNull” from the code?

So it will look like this?

var currentItem, ds;

export function dynamicDataset_onReady() {
	ds = $w('#dynamicDataset');
	currentItem = ds.getCurrentItem();

let views = (currentItem.viewCount) +1;
let votes = (currentItem.voteCount);	

ds.setFieldValue('viewCount', views);
ds.setFieldValue('voteCount', votes);
ds.save();	
	
}	
	
export function heart_onClick(event, $w) {
	$w('#heart').hide();
	$w('#thanksBox').show('SLideIn');
	
	let votes = (currentItem.voteCount) +1;
ds.setFieldValue('voteCount', votes);
ds.save();

Problem with this code is that the view and vote count doesn’t show us.

This is my test site:

https://kubanjakub91.wixsite.com/goa-test/Novinky/Chef