fix: 🐛 dynamic storage bucket showing as static (#1933)
This commit is contained in:
1 parent
58cd75ef67
commit
406e45f039
2 files changed
+18
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user