mirror of
https://github.com/open-webui/open-webui
synced 2025-03-03 19:07:21 +00:00
fix: Resolve constant reassignment warning in Google Drive picker filename handling
This commit is contained in:
parent
eae86f04c5
commit
f919f63d33
@ -132,8 +132,9 @@ export const createPicker = () => {
|
||||
exportFormat = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
|
||||
} else if (mimeType.includes('spreadsheet')) {
|
||||
exportFormat = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
|
||||
// Update filename to have .xlsx extension for spreadsheets
|
||||
fileName = fileName.endsWith('.xlsx') ? fileName : `${fileName}.xlsx`;
|
||||
// Create new filename with .xlsx extension for spreadsheets
|
||||
const modifiedFileName = fileName.endsWith('.xlsx') ? fileName : `${fileName}.xlsx`;
|
||||
fileName = modifiedFileName;
|
||||
} else if (mimeType.includes('presentation')) {
|
||||
exportFormat = 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user