mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user