Reset table page on filters reset (#8257)

Date column to not show invalid date when column value is empty
This commit is contained in:
Vicky Bansal 2021-10-11 17:51:35 +05:30 committed by GitHub
parent 09c2875e4f
commit 1d9f1831ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,7 +324,7 @@ class TableWidget extends BaseWidget<TableWidgetProps, WidgetState> {
} catch (e) {
isValidDate = false;
}
if (isValidDate) {
if (isValidDate && value) {
try {
if (outputFormat === "SAME_AS_INPUT") {
outputFormat = inputFormat;
@ -684,6 +684,7 @@ class TableWidget extends BaseWidget<TableWidgetProps, WidgetState> {
applyFilters = (filters: ReactTableFilter[]) => {
this.resetSelectedRowIndex();
this.props.updateWidgetMetaProperty("filters", filters);
this.props.updateWidgetMetaProperty("pageNo", 1);
};
toggleDrag = (disable: boolean) => {