Skip to content

Commit

Permalink
update variable name
Browse files Browse the repository at this point in the history
the prior variable name was inconsistent with the rest of the file, and therefore created confusion
  • Loading branch information
Abby Wheelis committed Oct 22, 2023
1 parent 6da202c commit 5386a2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/js/control/ProfileSettings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const ProfileSettings = () => {
const [showingSensed, setShowingSensed] = useState(false);
const [showingLog, setShowingLog] = useState(false);
const [editSync, setEditSync] = useState(false);
const [editCollection, setEditCollection] = useState(false);
const [editCollectionVis, setEditCollectionVis] = useState(false);

// const [collectConfig, setCollectConfig] = useState({});
const [collectSettings, setCollectSettings] = useState({});
Expand Down Expand Up @@ -156,13 +156,13 @@ const ProfileSettings = () => {

//ensure ui table updated when editor closes
useEffect(() => {
if(editCollection == false) {
if(editCollectionVis == false) {
setTimeout(function() {
console.log("closed editor, time to refresh collect");
refreshCollectSettings();
}, 1000);
}
}, [editCollection])
}, [editCollectionVis])

async function refreshNotificationSettings() {
console.debug('about to refreshNotificationSettings, notificationSettings = ', notificationSettings);
Expand Down Expand Up @@ -496,7 +496,7 @@ const ProfileSettings = () => {
<LogPage pageVis={showingLog} setPageVis={setShowingLog}></LogPage>

<ControlSyncHelper editVis={editSync} setEditVis={setEditSync}></ControlSyncHelper>
<ControlCollectionHelper editVis={editCollection} setEditVis={setEditCollection}></ControlCollectionHelper>
<ControlCollectionHelper editVis={editCollectionVis} setEditVis={setEditCollectionVis}></ControlCollectionHelper>

</>
);
Expand Down

0 comments on commit 5386a2d

Please sign in to comment.