diff --git a/ui/admin/app/components/form/target/add-credential-sources/index.hbs b/ui/admin/app/components/form/target/add-credential-sources/index.hbs
index 1f7f7704b..c9a06ad13 100644
--- a/ui/admin/app/components/form/target/add-credential-sources/index.hbs
+++ b/ui/admin/app/components/form/target/add-credential-sources/index.hbs
@@ -1,6 +1,6 @@
{{credentialSource.name}}
diff --git a/ui/admin/app/components/form/target/add-credential-sources/index.js b/ui/admin/app/components/form/target/add-credential-sources/index.js
index 451d47f15..1715401da 100644
--- a/ui/admin/app/components/form/target/add-credential-sources/index.js
+++ b/ui/admin/app/components/form/target/add-credential-sources/index.js
@@ -15,22 +15,14 @@ export default class FormTargetAddCredentialSourcesIndexComponent extends Compon
/**
* Add/Remove credential source to current selection
- * @param {CredentialLibraryModel, CredentialModel} credentialSource
+ * @param {string} credentialSourceId
*/
@action
- toggleCredentialSource(credentialSource) {
- if (!this.selectedCredentialSourceIDs.includes(credentialSource.id)) {
- this.selectedCredentialSourceIDs.addObject(credentialSource.id);
+ toggleCredentialSource(credentialSourceId) {
+ if (!this.selectedCredentialSourceIDs.includes(credentialSourceId)) {
+ this.selectedCredentialSourceIDs.addObject(credentialSourceId);
} else {
- this.selectedCredentialSourceIDs.removeObject(credentialSource.id);
+ this.selectedCredentialSourceIDs.removeObject(credentialSourceId);
}
}
-
- /**
- * Submit selected credential source ids
- */
- @action
- submit(fn) {
- fn(this.selectedCredentialSourceIDs);
- }
}