From 382101e1b101ca7f8d58a0b464f7be77db13b76c Mon Sep 17 00:00:00 2001 From: Paul Sarando Date: Wed, 6 Mar 2024 15:30:20 -0700 Subject: [PATCH] CORE-1967 Don't attempt to update read-only LocalContexts metadata --- src/components/metadata/templates/LocalContextsField.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/metadata/templates/LocalContextsField.js b/src/components/metadata/templates/LocalContextsField.js index de3048dcc..c470533eb 100644 --- a/src/components/metadata/templates/LocalContextsField.js +++ b/src/components/metadata/templates/LocalContextsField.js @@ -99,6 +99,8 @@ const LocalContextsField = ({ }), enabled: !!projectHubURI && !fieldError, onSuccess: (project) => { + if (!writable) return; + let newValue = avu.value || ""; const projectLabels = [