Skip to content

Commit 806810a

Browse files
authored
Merge pull request dbeaver#1114 from dbeaver/hotfix/CB-2514-unsaved-changes
CB-2514 fix(plugin-connections): Do not show unsaved changes dialog
2 parents ab4a1fc + 2269a82 commit 806810a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

webapp/packages/plugin-connections/src/ConnectionForm/Options/ConnectionOptionsTabService.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,7 @@ export class ConnectionOptionsTabService extends Bootstrap {
237237

238238
tempConfig.description = state.config.description;
239239

240-
if (state.projectId === PROJECT_GLOBAL_ID) {
241-
tempConfig.template = state.config.template;
242-
}
240+
tempConfig.template = state.projectId === PROJECT_GLOBAL_ID ? state.config.template : false;
243241

244242
tempConfig.driverId = state.config.driverId;
245243

0 commit comments

Comments
 (0)