mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
only generate filename if the database name is set (#5568)
This commit is contained in:
@@ -148,7 +148,7 @@ export abstract class DacFxConfigPage extends BasePage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected generateFilePathFromDatabaseAndTimestamp(): string {
|
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 {
|
protected getDateTime(): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user