diff --git a/dbrepo-ui/components/query/Results.vue b/dbrepo-ui/components/query/Results.vue
index 56856893753bf2b3a942dfcbbf5dd5d7938dd1a4..f9fa1cebd1337c502ba5faabf9f9a4f5c6438095 100644
--- a/dbrepo-ui/components/query/Results.vue
+++ b/dbrepo-ui/components/query/Results.vue
@@ -82,6 +82,7 @@ export default {
         .then((result) => {
           this.mapResults(result)
           parent.resultId = result.id
+          this.id = result.id
         })
         .finally(() => {
           this.loading--