Implement rename explorations

pull/10616/head
Andrew Watkins 2016-10-04 12:58:22 -07:00
parent fc5626d58f
commit 355850fba0
2 changed files with 4 additions and 4 deletions

View File

@ -194,11 +194,11 @@ export function deleteExplorer(source, explorerURI, push) {
};
}
export function editExplorer(clusterID, explorerID, params) {
export function editExplorer(explorerURI, params) {
return (dispatch) => {
AJAX({
url: `/api/int/v1/explorers/${explorerID}`,
method: 'PUT',
url: explorerURI,
method: 'PATCH',
data: JSON.stringify(params),
headers: {
'Content-Type': 'application/json',

View File

@ -34,7 +34,7 @@ export default function explorers(state = {}, action) {
case 'EDIT_EXPLORER': {
const {explorer} = action.payload;
const update = {
[explorer.id]: normalizeExplorer(explorer),
[explorer.link.href]: normalizeExplorer(explorer),
};
return u(update, state);