Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Reload selectedAttribute upon the message of WS #1367 #1395

Merged
merged 1 commit into from
Nov 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/components/app/DocumentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,24 @@ class DocumentList extends Component {
}

if(fullyChanged == true){
const { store } = this.context;
const {
dispatch, windowType
} = this.props;
const { viewId } = this.state;
const selection = getSelection({
state: store.getState(),
windowType,
viewId,
});

// Reload Attributes after QuickAction is done
selection.length && dispatch(selectTableItems({
windowType,
viewId,
ids: selection[0],
}));

this.browseView();
this.updateQuickActions();
}
Expand Down