style: lint
All checks were successful
Build / Build-and-ng-test (pull_request) Successful in 4m15s
Build / Build-and-test-development (pull_request) Successful in 8m34s

This commit is contained in:
Mihajlo Medjedovic 2025-06-06 10:58:01 +02:00
parent 86134f478a
commit a0dc92c403

View File

@ -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}`)
})