исправлен кривой поиск при инициализации

This commit is contained in:
Alexey Kasyanchuk 2017-11-09 15:10:37 +03:00
parent b947b670b3
commit 223863191f
2 changed files with 4 additions and 4 deletions

View File

@ -324,7 +324,7 @@ io.on('connection', function(socket)
if(navigation.files.min > 0) if(navigation.files.min > 0)
where += ' and files > ' + mysqlPool.escape(navigation.files.min) + ' '; where += ' and files > ' + mysqlPool.escape(navigation.files.min) + ' ';
} }
console.log(where) console.log(navigation, where)
let searchList = []; let searchList = [];
//args.splice(orderBy && orderBy.length > 0 ? 1 : 0, 1); //args.splice(orderBy && orderBy.length > 0 ? 1 : 0, 1);

View File

@ -10,11 +10,11 @@ export default class AdvancedSearchControl extends Component {
super(props) super(props)
this.state = { this.state = {
type: undefined, type: undefined,
size: {min: 0, max: 500 * 1024}, size: {min: 0, max: 0},
maxSize: 1024 * 1024, maxSize: 1024 * 1024 * 1024,
sizeEnabled: false, sizeEnabled: false,
filesEnabled: false, filesEnabled: false,
files: {min: 0, max: 5}, files: {min: 0, max: 0},
filesMax: 100, filesMax: 100,
} }
if(this.props.state) if(this.props.state)