mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 01:32:47 +00:00
Merge pull request #4026 from 5e-Cleric/fix-errorpage-error-if-brew-title-doesn't-exist
fix undefined value in errorIndex.js if brew doesn't exist
This commit is contained in:
@@ -3,8 +3,8 @@ const dedent = require('dedent-tabs').default;
|
|||||||
const loginUrl = 'https://www.naturalcrit.com/login';
|
const loginUrl = 'https://www.naturalcrit.com/login';
|
||||||
|
|
||||||
// Prevent parsing text (e.g. document titles) as markdown
|
// Prevent parsing text (e.g. document titles) as markdown
|
||||||
const escape = (text) => {
|
const escape = (text = '')=>{
|
||||||
return text.split('').map(char => `&#${char.charCodeAt(0)};`).join('');
|
return text.split('').map((char)=>`&#${char.charCodeAt(0)};`).join('');
|
||||||
};
|
};
|
||||||
|
|
||||||
//001-050 : Brew errors
|
//001-050 : Brew errors
|
||||||
|
|||||||
Reference in New Issue
Block a user