fix: 🐛 dynamic storage bucket showing as static (#1933)

This commit is contained in:
Cameron Perera authored and GitHub committed 2023-09-28 12:10:35 -05:00
1 parent 58cd75ef67
commit 406e45f039
2 files changed
+18 -2

No files matched your search

+7 -1
View File
@@ -38,7 +38,13 @@ export default class StorageBucketModel extends GeneratedStorageBucketModel {
* @type {string}
*/
get credentialType() {
if (!this.#credentialType) return 'static';
if (!this.#credentialType) {
if (this.role_arn) {
this.#credentialType = TYPE_CREDENTIAL_DYNAMIC;
} else {
this.#credentialType = TYPE_CREDENTIAL_STATIC;
}
}
return this.#credentialType;
}