Implement rename explorations
parent
fc5626d58f
commit
355850fba0
|
@ -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',
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue