fix filter

pull/2/head
Aji Kamaludin 3 years ago
parent 0bc849d16d
commit 5a081dd907
No known key found for this signature in database
GPG Key ID: 670E1F26AD5A8099

4
public/js/app.js vendored

@ -4317,8 +4317,8 @@ function Transaction(props) {
var handleReset = function handleReset() { var handleReset = function handleReset() {
setTransaction(null); setTransaction(null);
setSearch(''); setSearch('');
setStartDate(moment__WEBPACK_IMPORTED_MODULE_2___default()().startOf('month').format('YYYY-MM-DD')); setStartDate(_startDate);
setEndDate(moment__WEBPACK_IMPORTED_MODULE_2___default()().endOf('month').format('YYYY-MM-DD')); setEndDate(_endDate);
setData({ setData({
category_id: '', category_id: '',
description: '', description: '',

@ -78,8 +78,8 @@ export default function Transaction(props) {
const handleReset = () => { const handleReset = () => {
setTransaction(null) setTransaction(null)
setSearch('') setSearch('')
setStartDate(moment().startOf('month').format('YYYY-MM-DD')) setStartDate(_startDate)
setEndDate(moment().endOf('month').format('YYYY-MM-DD')) setEndDate(_endDate)
setData({ setData({
category_id: '', category_id: '',
description: '', description: '',

Loading…
Cancel
Save