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