|
|
|
@ -22,7 +22,7 @@ import { ActionNotificationHide, ActionNotificationShow } from '@core/notificati |
|
|
|
import { Store } from '@ngrx/store'; |
|
|
|
import { AppState } from '@core/core.state'; |
|
|
|
import { CancelAnimationFrame, RafService } from '@core/services/raf.service'; |
|
|
|
import { guid, isDefinedAndNotNull, isLiteralObject, isUndefined } from '@core/utils'; |
|
|
|
import { guid, isDefinedAndNotNull, isUndefined } from '@core/utils'; |
|
|
|
import { ResizeObserver } from '@juggle/resize-observer'; |
|
|
|
import { getAce } from '@shared/models/ace/ace.models'; |
|
|
|
|
|
|
|
@ -259,7 +259,7 @@ export class JsonObjectEditComponent implements OnInit, ControlValueAccessor, Va |
|
|
|
if (this.contentValue && this.contentValue.length > 0) { |
|
|
|
try { |
|
|
|
data = JSON.parse(this.contentValue); |
|
|
|
if (!isLiteralObject(data)) { |
|
|
|
if (typeof data !== 'object') { |
|
|
|
throw new TypeError(`Value is not a valid JSON`); |
|
|
|
} |
|
|
|
this.objectValid = true; |
|
|
|
|