Skip to content

Commit

Permalink
fix: emulator observer
Browse files Browse the repository at this point in the history
  • Loading branch information
krocheck committed May 22, 2024
1 parent 26849c4 commit 0c01b3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webui/src/Emulator/Emulator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
import { Operation as JsonPatchOperation } from 'fast-json-patch'
import { UserConfigStore } from '../Stores/UserConfigStore.js'
import { useUserConfigSubscription } from '../Hooks/useUserConfigSubscription.js'
import { observer } from 'mobx-react-lite'

export function Emulator() {

export const Emulator = observer(function Emulator() {
const socket = useContext(SocketContext)

const [config, setConfig] = useState<EmulatorConfig | null>(null)
Expand Down Expand Up @@ -211,7 +213,7 @@ export function Emulator() {
)}
</div>
)
}
})

interface ConfigurePanelProps {
config: EmulatorConfig
Expand Down

0 comments on commit 0c01b3b

Please sign in to comment.