File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -381,6 +381,10 @@ def get_test_result_history(selected_row):
381381
382382
383383def show_test_def_detail (str_test_def_id ):
384+ if not str_test_def_id :
385+ st .warning ("Test definition no longer exists." )
386+ return
387+
384388 df = get_test_definition (str_test_def_id )
385389
386390 specs = []
@@ -758,9 +762,10 @@ def source_data_dialog(selected_row):
758762
759763
760764def view_edit_test (button_container , test_definition_id ):
761- with button_container :
762- if st .button (":material/edit: Edit Test" , help = "Edit the Test Definition" , use_container_width = True ):
763- show_test_form_by_id (test_definition_id )
765+ if test_definition_id :
766+ with button_container :
767+ if st .button (":material/edit: Edit Test" , help = "Edit the Test Definition" , use_container_width = True ):
768+ show_test_form_by_id (test_definition_id )
764769
765770
766771def get_report_file_data (update_progress , tr_data ) -> FILE_DATA_TYPE :
You can’t perform that action at this time.
0 commit comments