Skip to content

Commit

Permalink
fix: react key
Browse files Browse the repository at this point in the history
  • Loading branch information
longtv2222 committed Dec 20, 2023
1 parent c1b786b commit e8ca6e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions prototype/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default function App() {
exterior: carsState[name].exterior,
interior: carsState[name].interior,
visible: levaStore.get("Select") === name,
key: name
})
))}
</Suspense>
Expand Down
4 changes: 4 additions & 0 deletions prototype/src/components/Models/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export interface ModelProps {
* To show or hide model
*/
readonly visible: boolean
/**
* Key of the component
*/
readonly key: string
}


Expand Down

0 comments on commit e8ca6e2

Please sign in to comment.