tanishqgandhi1908 opened a new issue, #8342:
URL: https://github.com/apache/texera/issues/8342

   ### What happened?
   
   The "Choose a Version" dropdown on a dataset's detail page has a clear (×) 
button. Clicking it throws an uncaught TypeError and leaves the page 
half-cleared:
   
   the main pane switches to "No version is selected"
   but the header above it still shows the cleared version's file path and size
   the file tree on the right still lists that version's files, and clicking 
one now does nothing
   the version size, created date and Download button disappear
   Picking a version again recovers the page, so nothing is lost. But the error 
should not happen, and clearing the selection isn't a meaningful action on a 
page whose entire content is one version.
   
   Expected: no clear button, and no error if the selection is emptied.
   
   The model detail page does not have this problem — its version selector has 
no clear button.
   
   Before clicking × — the clear button in the version dropdown:
   
   <img width="1440" height="900" alt="Image" 
src="https://github.com/user-attachments/assets/fb394fef-d6d7-4249-b706-47f87a1067de";
 />
   
   After clicking × — empty main pane, but the old file path and the file tree 
are still there:
   
   <img width="1440" height="900" alt="Image" 
src="https://github.com/user-attachments/assets/23d82f11-bfe5-4e77-a09e-e7b5996df213";
 />
   
   The same moment with the console error (the console output is overlaid onto 
the page so it fits in one screenshot):
   
   <img width="1440" height="900" alt="Image" 
src="https://github.com/user-attachments/assets/a544e739-4a5a-48be-be5e-0e548f357a0a";
 />
   
   ### How to reproduce?
   
   1. Open a dataset that has at least one version: Your Work → Datasets → 
click a dataset.
   2. Go to the "Versions & Files" tab and open the browser console.
   3. Hover the version dropdown under "Choose a Version" and click the × that 
appears.
   4. A TypeError is logged, and the page ends up in the state above.. 
   
   ### Version/Branch
   
   1.4.0-incubating-SNAPSHOT (main)
   
   ### Commit Hash (Optional)
   
   246f7bc50
   
   ### What browsers are you seeing the problem on?
   
   Chrome
   
   ### Relevant log output
   
   ```shell
   ERROR TypeError: Cannot read properties of null (reading 'dvid')
       at DatasetDetailComponent.onVersionSelected (main.js)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to