diff --git a/gui/src/components/editQuantity/QueryEditQuantity.js b/gui/src/components/editQuantity/QueryEditQuantity.js
index cdc8dc110b89c6366c2a9738527b308af54c4125..1765b6b3995f681ffadf018782e8cbf773fd171d 100644
--- a/gui/src/components/editQuantity/QueryEditQuantity.js
+++ b/gui/src/components/editQuantity/QueryEditQuantity.js
@@ -92,7 +92,7 @@ function SearchDialog({open, filters, pageSize, onCancel, onQueryChanged}) {
     if (!data) {
       return undefined
     }
-    return data.map(entry => ({entry_id: entry.entry_id, mainfile: entry.mainfile}))
+    return data.map(entry => ({entry_id: entry.entry_id, upload_id: entry.upload_id, mainfile: entry.mainfile}))
   }, [data])
 
   const handleQueryChanged = useCallback(() => {
diff --git a/gui/src/components/editQuantity/QueryEditQuantity.spec.js b/gui/src/components/editQuantity/QueryEditQuantity.spec.js
index dd55a9cfa0263cad17721f10762edc1fe62ae286..87cd951f0d6b7c8c157afec3822c28050a4ca99f 100644
--- a/gui/src/components/editQuantity/QueryEditQuantity.spec.js
+++ b/gui/src/components/editQuantity/QueryEditQuantity.spec.js
@@ -58,9 +58,9 @@ test('Test QueryEditQuantity', async () => {
     value={{
       filters: {visibility: 'visible'},
       results: [
-        {entry_id: '1', mainfile: 'a'},
-        {entry_id: '2', mainfile: 'b'},
-        {entry_id: '3', mainfile: 'c'}
+        {entry_id: '1', upload_id: '10', mainfile: 'a'},
+        {entry_id: '2', upload_id: '20', mainfile: 'b'},
+        {entry_id: '3', upload_id: '30', mainfile: 'c'}
       ]}}
     onChange={handleChange}
   />)
@@ -89,8 +89,10 @@ test('Test QueryEditQuantity', async () => {
 
   // Assert the new results
   await waitFor(() => expect(handleChange.mock.calls[0][0].data[0].entry_id).toBe('bC7byHvWJp62Sn9uiuJUB38MT5j-'))
+  await waitFor(() => expect(handleChange.mock.calls[0][0].data[0].upload_id).toBe('eln_upload_id'))
   await waitFor(() => expect(handleChange.mock.calls[0][0].data[0].mainfile).toBe('sample.archive.json'))
   await waitFor(() => expect(handleChange.mock.calls[0][0].data[1].entry_id).toBe('83DS7AzwqTKFVwlrdVeaL3kMSLU_'))
+  await waitFor(() => expect(handleChange.mock.calls[0][0].data[1].upload_id).toBe('eln_upload_id'))
   await waitFor(() => expect(handleChange.mock.calls[0][0].data[1].mainfile).toBe('schema.archive.yaml'))
 
   // Clear results