Commit ef9cb1ef authored by Matija Obreza's avatar Matija Obreza
Browse files

Fix: Parameters swapped in API call to delete file of dataset

parent 4732347a
Pipeline #7038 passed with stages
in 6 minutes and 8 seconds
......@@ -101,7 +101,7 @@ class FilesForm extends React.Component<IFilesFormProps, any> {
<input
id="file"
type="file"
accept=".csv, .xls, .xlsx"
accept=".csv, .xls, .xlsx, .docx, .doc, .pdf, .txt"
style={ { display: 'none' } }
onChange={ this.upload }
/>
......
......@@ -470,9 +470,9 @@ class DatasetService {
* @param fileUuid fileUuid
* @param UUID UUID
*/
public static removeFileOfDataset(fileUuid: string, UUID: string): Promise<Dataset> {
public static removeFileOfDataset(UUID: string, fileUuid: string): Promise<Dataset> {
const apiUrl = URL_REMOVE_FILE_OF_DATASET.expand({fileUuid, UUID});
const apiUrl = URL_REMOVE_FILE_OF_DATASET.expand({UUID, fileUuid});
// console.log(`Fetching from ${apiUrl}`);
const content = { /* No content in request body */ };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment