function updateRunBrowser(~, fptInstance, isError)
    % UPDATERUNBROWSER updates the run browser with preparation node if it
    % exists. If not, it reverts back to a valid node to keep FPT in a good state.
    
    % Copyright 2019 The MathWorks, Inc.
        
    dc = fptInstance.getDataController();
    rbc = dc.getRunBrowserController();
    runInfo = dc.getRunBrowserData();
    runInfo.isError = isError;
    rbc.updateRunBrowser(runInfo);
end
