+1
src/app/works/[workId]/preview/route.js
+1
src/app/works/[workId]/preview/route.js
···
···
+3
-3
src/lib/sanitizeData.js
+3
-3
src/lib/sanitizeData.js
···const warningsUnique = warnings.reduce((a, b) => { return a.concat(b) }).filter((w, i) => { return i === warnings.indexOf(w) })······const themeData = propsParsed.theme ? themes[propsParsed.theme] : themes[process.env.DEFAULT_THEME]
···const warningsUnique = warnings.reduce((a, b) => { return a.concat(b) }).filter((w, i) => { return i === warnings.indexOf(w) })······const themeData = propsParsed.theme ? themes[propsParsed.theme] : themes[process.env.DEFAULT_THEME]+const parentWork = type === 'work' && data.chapterInfo ? await getWork(data.id, archive) : null