Skip to content

Commit

Permalink
chore: fix TestViewPort to make it pass linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarpl committed Feb 12, 2024
1 parent 4101cdd commit 2b363db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const TestViewPort: React.FC<{ api: APIConnection }> = ({ api }) => {

// Also fetch initial settings:
api.viewPort
.get('')
.get(null)
.then((data) => {
setViewPort(data)
})
Expand All @@ -53,7 +53,7 @@ export const TestViewPort: React.FC<{ api: APIConnection }> = ({ api }) => {
<EditObject
obj={viewPort}
onChange={(newViewPort) => {
api.viewPort.update('', newViewPort).catch(console.error)
api.viewPort.update(null, newViewPort).catch(console.error)
}}
/>
</div>
Expand Down

0 comments on commit 2b363db

Please sign in to comment.