fix: 🐛 deleting session recording causes error (#2510)

* fix: 🐛 deleting session recording causes error

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-15236

* fix: 🐛 remove scope filter & remove unused translation

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-15236
This commit is contained in:
Lisbet Alvarez authored and GitHub committed 2024-10-04 08:14:30 -07:00
1 parent 401ff354e8
commit 64e568bd72
3 files changed
+31 -5

No files matched your search

@@ -62,7 +62,7 @@ export default class ScopesScopeSessionRecordingsSessionRecordingChannelsByConne
try {
await sessionRecording.reapplyStoragePolicy();
} catch (e) {
await this.router.replaceWith('scopes.scope.session-recordings');
this.router.replaceWith('scopes.scope.session-recordings');
this.router.refresh();
throw new Error(e);
}
@@ -79,7 +79,7 @@ export default class ScopesScopeSessionRecordingsSessionRecordingChannelsByConne
@notifySuccess('notifications.delete-success')
async delete(sessionRecording) {
await sessionRecording.destroyRecord();
await this.router.replaceWith('scopes.scope.session-recordings');
this.router.replaceWith('scopes.scope.session-recordings');
this.router.refresh();
}
}