1) Fixed import/export servers issue in server mode.

2) Fixed an issue where files are not showing as per the selected format in
   the file dialog when opened the first time.
This commit is contained in:
Akshay Joshi
2022-01-07 21:29:17 +05:30
parent af6ff20020
commit 4ecd05e33b
3 changed files with 60 additions and 20 deletions

View File

@@ -1985,7 +1985,7 @@ define([
let response = getFileFormat(this.config.options.allowed_file_types);
let lastSelectedFormat = response.responseJSON.info;
if (_.isUndefined(lastSelectedFormat))
if (_.isUndefined(lastSelectedFormat) || allowed_types.indexOf(lastSelectedFormat) < 0)
set_type = allowed_types[0];
else
set_type = lastSelectedFormat;