Skip to content

Commit

Permalink
Avoid app crashes if /customization/html/details folder is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Nov 7, 2023
1 parent 7317496 commit d9cb7d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/services/getConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const deepmerge = require('deepmerge');
const { getLocales } = require('./getLocales');

function getFiles(dir, files = []) {
if (!fs.existsSync(dir)) {
return files;
}
const fileList = fs.readdirSync(dir);
for (const file of fileList) {
const name = `${dir}/${file}`;
Expand Down

0 comments on commit d9cb7d2

Please sign in to comment.