Fixes linter errors && PaperSheet not working

This commit is contained in:
Artur
2022-01-27 19:49:14 +02:00
parent 2b1964e460
commit 8a4e12500c
2 changed files with 6 additions and 5 deletions
@@ -54,10 +54,10 @@ export const ClockworkSlab = (props, context) => {
// Flatten all categories and apply search to it
// truthy because WE DO NOT WANT TO RETURN THIS!
&& !!map((v, k) => {
bucketOfScriptures = bucketOfScriptures.concat(v);
})(scripture)
bucketOfScriptures = bucketOfScriptures.concat(v);
})(scripture)
&& bucketOfScriptures.filter(testSearch)
.filter((item, i) => i < MAX_SEARCH_RESULTS)
.filter((item, i) => i < MAX_SEARCH_RESULTS)
// Return the default one
|| scripture[tab]
|| null; // this is nullable, it's recommended that you null it.
+3 -2
View File
@@ -5,12 +5,13 @@
* @author Changes stylemistake
* @author Changes ThePotato97
* @author Changes Ghommie
* @author Changes Artur_Lang
* @license MIT
*/
import { classes } from 'common/react';
import { Component } from 'inferno';
import marked from 'marked';
import { marked } from 'marked';
import { useBackend } from '../backend';
import { Box, Flex, Tabs, TextArea } from '../components';
import { Window } from '../layouts';
@@ -119,7 +120,7 @@ const run_marked_default = value => {
break;
}
};
return marked(value, {
return marked.parse(value, {
breaks: true,
smartypants: true,
smartLists: true,