|
|
|
@ -1250,7 +1250,9 @@ export class DocWorkerApi {
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
this._app.get('/api/docs/:docId/download/xlsx', canView, withDoc(async (activeDoc, req, res) => {
|
|
|
|
|
const options: DownloadOptions = !_.isEmpty(req.query) ? await this._getDownloadOptions(req) : {
|
|
|
|
|
const options: DownloadOptions = (!_.isEmpty(req.query) && !_.isEqual(Object.keys(req.query), ["title"]))
|
|
|
|
|
? await this._getDownloadOptions(req)
|
|
|
|
|
: {
|
|
|
|
|
filename: await this._getDownloadFilename(req),
|
|
|
|
|
tableId: '',
|
|
|
|
|
viewSectionId: undefined,
|
|
|
|
|