fixed file upload of new files and get 1000 process models to list tiles page w/ burnettk
This commit is contained in:
parent
3224bdfa34
commit
f02d6b5775
|
@ -35,7 +35,7 @@ export default function ProcessModelListTiles({
|
|||
setProcessModels(result.results);
|
||||
};
|
||||
// only allow 10 for now until we get the backend only returning certain models for user execution
|
||||
let queryParams = '?per_page=20';
|
||||
let queryParams = '?per_page=1000';
|
||||
if (processGroup) {
|
||||
queryParams = `${queryParams}&process_group_identifier=${processGroup.id}`;
|
||||
} else {
|
||||
|
|
|
@ -418,12 +418,18 @@ export default function ProcessModelShow() {
|
|||
|
||||
const checkDuplicateFile = (event: any) => {
|
||||
if (processModel && processModel.files.length > 0) {
|
||||
let foundExistingFile = false;
|
||||
processModel.files.forEach((file) => {
|
||||
if (file.name === filesToUpload[0].name) {
|
||||
displayOverwriteConfirmation(file.name);
|
||||
setFileUploadEvent(event);
|
||||
foundExistingFile = true;
|
||||
}
|
||||
});
|
||||
if (foundExistingFile) {
|
||||
displayOverwriteConfirmation(filesToUpload[0].name);
|
||||
setFileUploadEvent(event);
|
||||
} else {
|
||||
doFileUpload(event);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue