From 40deaa4b4f2149aa5779481730120ebb24dc5f37 Mon Sep 17 00:00:00 2001 From: Florian Jochens <fj@andaco.de> Date: Thu, 27 Jan 2022 14:16:06 +0100 Subject: [PATCH] citation_parser_main.py --- citation_parser_main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/citation_parser_main.py b/citation_parser_main.py index 9335daa..988e572 100644 --- a/citation_parser_main.py +++ b/citation_parser_main.py @@ -284,11 +284,10 @@ def generate_output(n_clicks,all_inputs,forward_depth,backward_depth,additional_ :type additional_options: list of strings ''' changed_id = [p['prop_id'] for p in callback_context.triggered][0] - if n_clicks is None: - raise PreventUpdate + # This branch is entered when 'Generate Graph' is pushed or 'Update Automatically' is selected # and the checklist or recursion depths are changed. - elif 'Update Automatically' in additional_options \ + if 'Update Automatically' in additional_options \ or 'start-button' in changed_id: input_links = [x['value'] for x in all_inputs] # Processing only returns a potential error message. The data for the graph is simply saved -- GitLab