code cleanup

This commit is contained in:
Jan Prochazka
2020-12-03 12:03:37 +01:00
parent 655429693a
commit 0a3a1c9468
4 changed files with 0 additions and 51 deletions

View File

@@ -44,14 +44,10 @@ function AppObjectListItem({
React.useEffect(() => {
if (!expandable) {
// if (data._id == '6pOY2iFY8Gsq7mk6') console.log('COLLAPSE1');
setIsExpanded(false);
}
}, [expandable]);
// const { matcher } = appobj;
// if (matcher && !matcher(filter)) return null;
let commonProps = {
prefix: SubItems ? (
<ExpandIconHolder2>
@@ -128,7 +124,6 @@ export function AppObjectList({
if (groupFunc) {
const listGrouped = _.compact(
(list || []).map((data) => {
// const appobj = makeAppObj(data, appObjectParams);
const matcher = AppObjectComponent.createMatcher && AppObjectComponent.createMatcher(data);
if (matcher && !matcher(filter)) return null;
const component = createComponent(data);