Skip to content

Commit

Permalink
Revert "Display folder field in evidence when creating from it from a…
Browse files Browse the repository at this point in the history
…n applied control"
  • Loading branch information
nas-tabchiche authored Oct 17, 2024
1 parent e2aefd9 commit 1dcf0fb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@
field="attachment"
label={m.attachment()}
/>
{#if !initialData.requirement_assessments}
{#if !(initialData.applied_controls || initialData.requirement_assessments)}
<AutocompleteSelect
{form}
options={getOptions({ objects: model.foreignKeys['folder'] })}
field="folder"
cacheLock={cacheLocks['folder']}
bind:cachedValue={formDataCache['folder']}
label={m.domain()}
hidden={initialData.applied_controls || initialData.requirement_assessments}
/>
{:else}
<HiddenInput {form} field="folder" />
Expand Down

0 comments on commit 1dcf0fb

Please sign in to comment.