Skip to content

Commit

Permalink
Remove setMap and setApp
Browse files Browse the repository at this point in the history
Remove setMap and setApp as the map and app state are not meant to be updated.
  • Loading branch information
linusfj committed Jan 20, 2023
1 parent 3e33a0d commit d795ef3
Showing 1 changed file with 2 additions and 2 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, setMap] = useState(settings.map);
const [app, setApp] = useState(settings.app);
const map = useState(settings.map);
const app = useState(settings.app);
const [bookmarks, setBookmarks] = useState([]);

useEffect(() => {
Expand Down

0 comments on commit d795ef3

Please sign in to comment.