Fix coding style

This commit is contained in:
dklimpel 2020-03-29 20:28:40 +02:00
parent 00d3069efd
commit 759cfa21f2
2 changed files with 5 additions and 11 deletions

View File

@ -1,16 +1,10 @@
import React from "react";
import {
Datagrid,
List,
TextField,
SearchInput,
Filter
} from "react-admin";
import { Datagrid, List, TextField, SearchInput, Filter } from "react-admin";
const RoomFilter = (props) => (
<Filter {...props}>
<SearchInput source="search_term" alwaysOn />
</Filter>
<Filter {...props}>
<SearchInput source="search_term" alwaysOn />
</Filter>
);
export const RoomList = props => (

View File

@ -58,7 +58,7 @@ const dataProvider = {
const { user_id, guests, deactivated, search_term } = params.filter;
const { page, perPage } = params.pagination;
var { field, order } = params.sort;
if ( order === "DESC") {
if (order === "DESC") {
order = "b";
} else {
order = "f";