From 3f4c655e5e8e6eac20efb445709605aed237642c Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 15 Jul 2024 17:00:42 +0200 Subject: [PATCH] Disable is_dirty when link not found --- resources/js/views/form/Conditions.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/js/views/form/Conditions.vue b/resources/js/views/form/Conditions.vue index 5044660f..b3db6e80 100644 --- a/resources/js/views/form/Conditions.vue +++ b/resources/js/views/form/Conditions.vue @@ -165,5 +165,7 @@ async function checkIfDirty() { locked.value = response.data.result; } -checkIfDirty(); +if (props.single.links && props.single.links.is_dirty) { + checkIfDirty(); +}