only generate filename if the database name is set (#5568)

This commit is contained in:
kisantia
2019-05-21 16:03:54 -07:00
committed by GitHub
parent 2549d91ddf
commit e9ddf43c6c

View File

@@ -148,7 +148,7 @@ export abstract class DacFxConfigPage extends BasePage {
}
protected generateFilePathFromDatabaseAndTimestamp(): string {
return path.join(this.getRootPath(), sanitizeStringForFilename(this.model.database) + '-' + this.getDateTime() + this.fileExtension);
return this.model.database ? path.join(this.getRootPath(), sanitizeStringForFilename(this.model.database) + '-' + this.getDateTime() + this.fileExtension) : '';
}
protected getDateTime(): string {