🐛 fix(parameterComponent): add condition to prevent setting state if tabId does not exist in previous state
This commit is contained in:
parent
0389d8ec1e
commit
e528b1363e
1 changed files with 3 additions and 0 deletions
|
|
@ -90,6 +90,9 @@ export default function ParameterComponent({
|
|||
// Set state to pending
|
||||
//@ts-ignore
|
||||
setTabsState((prev: TabsState) => {
|
||||
if (!prev[tabId]) {
|
||||
return prev;
|
||||
}
|
||||
return {
|
||||
...prev,
|
||||
[tabId]: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue