This commit is contained in:
Ildar Galeev 2023-03-29 17:01:24 +07:00 committed by GitHub
parent b7881cfa3b
commit 59668c8250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 9 deletions

14
package-lock.json generated
View File

@ -29,7 +29,7 @@
"@s-libs/ng-core": "15.0.0",
"@s-libs/rxjs-core": "15.0.0",
"@vality/deanonimus-proto": "2.0.1-2a3d5ad.0",
"@vality/domain-proto": "2.0.1-2d6fd01.0",
"@vality/domain-proto": "2.0.1-698c7d2.0",
"@vality/dominant-cache-proto": "2.0.1-99f38c9.0",
"@vality/fistful-proto": "2.0.1-4ff4ea3.0",
"@vality/magista-proto": "2.0.1-cf0eff8.0",
@ -5153,9 +5153,9 @@
"integrity": "sha512-p/kR6o1mTWatvzpltDbSzJjRiA75ph8N5CZm5FTa+5ZgGer9pSN4sZhRGJj/iIfZkXZuVNZp9kisS+4+QKx13A=="
},
"node_modules/@vality/domain-proto": {
"version": "2.0.1-2d6fd01.0",
"resolved": "https://registry.npmjs.org/@vality/domain-proto/-/domain-proto-2.0.1-2d6fd01.0.tgz",
"integrity": "sha512-bw/hUo9bQmDiVpzjGJ7L5/GxiuOHAe/H7ubpM2FMAapY9S3eOhGMfJ0bj36HPP3EZsNHZMY2QkocD/4Pwfj/kA=="
"version": "2.0.1-698c7d2.0",
"resolved": "https://registry.npmjs.org/@vality/domain-proto/-/domain-proto-2.0.1-698c7d2.0.tgz",
"integrity": "sha512-tt9AU+haIySRsP8H3dz54XXp6eZSbuR0ME3lRZfFOZbsx6NadkHEJt4eVtEFYxc5V76gBw4uxtxJDfUz/UDOrA=="
},
"node_modules/@vality/dominant-cache-proto": {
"version": "2.0.1-99f38c9.0",
@ -22844,9 +22844,9 @@
"integrity": "sha512-p/kR6o1mTWatvzpltDbSzJjRiA75ph8N5CZm5FTa+5ZgGer9pSN4sZhRGJj/iIfZkXZuVNZp9kisS+4+QKx13A=="
},
"@vality/domain-proto": {
"version": "2.0.1-2d6fd01.0",
"resolved": "https://registry.npmjs.org/@vality/domain-proto/-/domain-proto-2.0.1-2d6fd01.0.tgz",
"integrity": "sha512-bw/hUo9bQmDiVpzjGJ7L5/GxiuOHAe/H7ubpM2FMAapY9S3eOhGMfJ0bj36HPP3EZsNHZMY2QkocD/4Pwfj/kA=="
"version": "2.0.1-698c7d2.0",
"resolved": "https://registry.npmjs.org/@vality/domain-proto/-/domain-proto-2.0.1-698c7d2.0.tgz",
"integrity": "sha512-tt9AU+haIySRsP8H3dz54XXp6eZSbuR0ME3lRZfFOZbsx6NadkHEJt4eVtEFYxc5V76gBw4uxtxJDfUz/UDOrA=="
},
"@vality/dominant-cache-proto": {
"version": "2.0.1-99f38c9.0",

View File

@ -43,7 +43,7 @@
"@s-libs/ng-core": "15.0.0",
"@s-libs/rxjs-core": "15.0.0",
"@vality/deanonimus-proto": "2.0.1-2a3d5ad.0",
"@vality/domain-proto": "2.0.1-2d6fd01.0",
"@vality/domain-proto": "2.0.1-698c7d2.0",
"@vality/dominant-cache-proto": "2.0.1-99f38c9.0",
"@vality/fistful-proto": "2.0.1-4ff4ea3.0",
"@vality/magista-proto": "2.0.1-cf0eff8.0",

View File

@ -65,7 +65,9 @@ export class ThriftEditorComponent<T> extends ValidatedFormControlSuperclass<T>
fileChange($event: MonacoFile) {
try {
this.editorError = null;
this.control.setValue($event.content as T);
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const parsed = JSON.parse($event.content);
this.control.setValue(parsed as T);
} catch (err) {
console.warn(err);
this.editorError = err;