Where did my code go?

Hi Francisco,

We were able to recover the last version of code that wasn’t an empty file:

import wixData from "wix-data";

export function button10_click() {
	$w("#dataset1").setSort(wixData.sort().ascending('endDate'));
}

export function button11_click() {
	$w("#dataset1").setSort(wixData.sort().descending('_createdDate'));
}

Code files are not saved automatically between editor sessions.
We recommend always saving the site before refreshing or closing the editor.