1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

scenarioID not necessary when removing result files

This commit is contained in:
irismarie 2021-02-11 11:59:06 +01:00
parent f968c0221c
commit 4038a998df
3 changed files with 2 additions and 4 deletions

View file

@ -113,7 +113,6 @@ class EditResultDialog extends React.Component {
type: 'resultfiles/start-remove',
resultID: this.state.id,
fileID: file.id,
scenarioID: this.props.scenarioID,
token: this.props.sessionToken
});

View file

@ -61,7 +61,7 @@ class ResultStore extends ArrayStore {
return state;
case 'resultfiles/start-remove':
ResultsDataManager.removeFile(action.resultID, action.fileID, action.scenarioID, action.token);
ResultsDataManager.removeFile(action.resultID, action.fileID, action.token);
return state;
default:

View file

@ -57,7 +57,7 @@ class ResultsDataManager extends RestDataManager {
});
}
removeFile(resultID, fileID, scenarioID, token) {
removeFile(resultID, fileID, token) {
RestAPI.delete(this.makeURL(this.url + '/' + resultID + '/file/' + fileID), token).then(response => {
// reload result
AppDispatcher.dispatch({
@ -72,7 +72,6 @@ class ResultsDataManager extends RestDataManager {
data: fileID,
token: token,
});
console.log(response);
});
}
}