Skip to content

Commit

Permalink
fix: structured clone from initTabs
Browse files Browse the repository at this point in the history
  • Loading branch information
eshankvaish committed Nov 14, 2024
1 parent 4ec34dc commit 06740d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/common/DynamicTabs/useTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ export function useTabs(persistanceKey: string) {
let _tabs: DynamicTabType[] = []
let parsedTabsData: ParsedTabsData

setTabs((_prevTabs) => {
const prevTabs = structuredClone(_prevTabs)

setTabs((prevTabs) => {
if (!reInit) {
const persistedTabsData = getTabDataFromLocalStorage()
try {
Expand Down

0 comments on commit 06740d0

Please sign in to comment.