Fix: Broken design in case of maxCount not used

pull/16/head
Juraj Nyíri 4 years ago
parent 7e3accbdcb
commit ce4254df14

@ -18690,6 +18690,7 @@ class Plex {
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
const escapeHtml = (unsafe) => { const escapeHtml = (unsafe) => {
if (unsafe) {
return unsafe return unsafe
.toString() .toString()
.replace(/&/g, '&') .replace(/&/g, '&')
@ -18697,6 +18698,8 @@ const escapeHtml = (unsafe) => {
.replace(/>/g, '>') .replace(/>/g, '>')
.replace(/"/g, '"') .replace(/"/g, '"')
.replace(/'/g, '''); .replace(/'/g, ''');
}
return '';
}; };
const CSS_STYLE = { const CSS_STYLE = {

@ -1,5 +1,6 @@
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
const escapeHtml = (unsafe: any): string => { const escapeHtml = (unsafe: any): string => {
if (unsafe) {
return unsafe return unsafe
.toString() .toString()
.replace(/&/g, '&') .replace(/&/g, '&')
@ -7,6 +8,8 @@ const escapeHtml = (unsafe: any): string => {
.replace(/>/g, '>') .replace(/>/g, '>')
.replace(/"/g, '"') .replace(/"/g, '"')
.replace(/'/g, '''); .replace(/'/g, ''');
}
return '';
}; };
// eslint-disable-next-line import/prefer-default-export // eslint-disable-next-line import/prefer-default-export

Loading…
Cancel
Save