Skip to content

Commit

Permalink
Remove unused import and fix bug
Browse files Browse the repository at this point in the history
Fix a bug with state handling and remove an unused `useEffect` import.
  • Loading branch information
linusfj committed Jan 20, 2023
1 parent d795ef3 commit 2595615
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions new-client/src/plugins/Bookmarks/BookmarksModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const bookmarksVersion = "1.0";
const storageKey = `bookmarks_v${bookmarksVersion}`;

const BookmarksModel = (settings) => {
const map = useState(settings.map);
const app = useState(settings.app);
const [map] = useState(settings.map);
const [app] = useState(settings.app);
const [bookmarks, setBookmarks] = useState([]);

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion new-client/src/plugins/Bookmarks/BookmarksView.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useEffect } from "react";
import { useState } from "react";
import PropTypes from "prop-types";
import { styled } from "@mui/material/styles";
import Button from "@mui/material/Button";
Expand Down

0 comments on commit 2595615

Please sign in to comment.