-
ca8471 authored
User can open Reaction and Sample which are related to each other and input sample analyses data by switching Reaction and Sample window tabs . This operation sometimes might confuse users if they save the data in one window tab and then check the data in another window tab without refreshing data. And sometimes it brings the issue about data inconsistent because some scenarios are not covered in the current data flow control (we have analyses and containers in sample json and analyses and product in rection json). Add refreshing sample data in two functions: handleFetchSampleById and resetCurrentElement as a workaround solution. For handleFetchSampleById, always reset currentElement and selecteds if currentElement.type is sample . For resetCurrentElement, always reset product if currentElement.type is recation.
d640ee51