Reset independent time when domain object changes (#4723)

This commit is contained in:
Shefali Joshi 2022-01-18 12:25:50 -08:00 committed by GitHub
parent 6aaf4a2c06
commit f211d3fab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,11 @@ export default {
watch: {
domainObject: {
handler(domainObject) {
this.independentTCEnabled = domainObject.configuration.useIndependentTime === true;
if (!domainObject.configuration.timeOptions || !this.independentTCEnabled) {
this.destroyIndependentTime();
return;
}