changes to setting main file for a folder for UI
@@ -97,6 +97,8 @@ def data_store_structure(request):
folder_aggregation_type = aggregation_object.get_aggregation_class_name()
folder_aggregation_name = aggregation_object.get_aggregation_display_name()
folder_aggregation_id = aggregation_object.id
+ main_file = ''
+ if not aggregation_object.is_fileset:
main_file = aggregation_object.get_main_file.file_name
else:
# find if any aggregation type can be created from this folder
