style: lint
This commit is contained in:
parent
86134f478a
commit
a0dc92c403
@ -346,7 +346,9 @@ export class AutomaticComponent implements OnInit {
|
||||
*/
|
||||
public async updateIndexHtmlComputeContext() {
|
||||
const filenamePath = location.search.split('/').pop()
|
||||
const filename = filenamePath?.includes('.') ? filenamePath : 'DataController.html'
|
||||
const filename = filenamePath?.includes('.')
|
||||
? filenamePath
|
||||
: 'DataController.html'
|
||||
|
||||
const indexHtmlContent = await this.sasService.getFileContent(
|
||||
`${this.appLoc}/services`,
|
||||
@ -377,11 +379,7 @@ export class AutomaticComponent implements OnInit {
|
||||
)
|
||||
|
||||
await this.sasService
|
||||
.updateFileContent(
|
||||
`${this.appLoc}/services`,
|
||||
filename,
|
||||
updatedContent
|
||||
)
|
||||
.updateFileContent(`${this.appLoc}/services`, filename, updatedContent)
|
||||
.catch((err: any) => {
|
||||
this.loggerService.error(`Failed to update DataController.html: ${err}`)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user