Skip to content

Commit

Permalink
#10276 linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
siemiatj committed Dec 7, 2020
1 parent 242deb2 commit 593c22d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
1 change: 0 additions & 1 deletion frontend/src/actions/ViewActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ export function fetchDocument({
dispatch(deleteFilter(entityRelatedId));
}


dispatch(fetchDocumentSuccess(windowId, response.data, isModal));

const tableId = getTableId({ windowId, viewId });
Expand Down
18 changes: 14 additions & 4 deletions frontend/src/containers/DocumentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,13 @@ class DocumentListContainer extends Component {
this.fetchLayoutAndData();
this.renderedSuccessfuly = false;

this.debouncedRefresh = debounce(() => {
this.browseView(true);
}, 500, { maxWait: 10000 });
this.debouncedRefresh = debounce(
() => {
this.browseView(true);
},
500,
{ maxWait: 10000 }
);
}

UNSAFE_componentWillMount() {
Expand Down Expand Up @@ -338,7 +342,13 @@ class DocumentListContainer extends Component {

// in case of redirect from a notification, first call will have viewId empty
if (viewId) {
this.getData(viewId, page, sort, locationSearchFilter, websocketRefresh).catch((err) => {
this.getData(
viewId,
page,
sort,
locationSearchFilter,
websocketRefresh
).catch((err) => {
if (err.response && err.response.status === 404) {
this.createNewView();
}
Expand Down

0 comments on commit 593c22d

Please sign in to comment.