dev #9

Merged
roman merged 27 commits from dev into master 2024-01-06 16:16:41 +00:00
Showing only changes of commit 81f5166043 - Show all commits
+3 -1
View File
@@ -48,9 +48,11 @@ function getErrorHtml(message = '', errorMessage = '') {
}
export async function getBlockData(jsonFileName = 'default', {projectPath} = {jsonFileName: 'default'}) {
const data = await readJSONFile(path.join(projectPath, 'data', `${jsonFileName}.json`));
const filePath = path.join(projectPath, 'data', `${jsonFileName}.json`);
const data = await readJSONFile(filePath);
if (data.error) {
console.log(filePath, data.errorMessage.replace(/<[^>]*>?/gm, ''));
return {};
}