Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

status page delete and resubmit not working #664

Merged
merged 2 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ async def resubmit_Items(request: Request):
statusLog.save_document(document_path=full_path)

except Exception as ex:
log.exception("Exception in /delete_Items")
log.exception("Exception in /resubmitItems")
raise HTTPException(status_code=500, detail=str(ex)) from ex
return True

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export interface IDocument {
iconName: string;
fileType: string;
filePath: string;
fileFolder: string;
state: string;
state_description: string;
upload_timestamp: string;
Expand Down Expand Up @@ -319,9 +320,9 @@ export const DocumentsDetailList = ({ items, onFilesSorted, onRefresh }: Props)
isPadded: true,
},
{
key: 'filePath',
key: 'fileFolder',
name: 'Folder',
fieldName: 'filePath',
fieldName: 'fileFolder',
minWidth: 70,
maxWidth: 90,
isResizable: true,
Expand Down
3 changes: 2 additions & 1 deletion app/frontend/src/components/FileStatus/FileStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ export const FileStatus = ({ className }: Props) => {
name: fileList[i].file_name,
iconName: FILE_ICONS[fileExtension.toLowerCase()],
fileType: fileExtension,
filePath: fileList[i].file_path.slice(0, fileList[i].file_path.lastIndexOf('/')),
filePath: fileList[i].file_path,
fileFolder: fileList[i].file_path.slice(0, fileList[i].file_path.lastIndexOf('/')),
state: fileList[i].state,
state_description: fileList[i].state_description,
upload_timestamp: fileList[i].start_timestamp,
Expand Down
Loading