Skip to content

Commit

Permalink
only load icons and userFiles once in UserAppDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
wellenvogel committed Dec 8, 2024
1 parent 5e86813 commit 3026ab5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions viewer/components/UserAppDialog.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState} from 'react';
import React, {useEffect, useState} from 'react';
import PropTypes from 'prop-types';
import OverlayDialog, {useDialogContext} from './OverlayDialog.jsx';
import Toast from './Toast.jsx';
Expand Down Expand Up @@ -92,7 +92,9 @@ const UserAppDialog = (props) => {

}

fillLists();
useEffect(() => {
fillLists();
}, []);
let fixed = props.fixed || {};
let canEdit = (currentAddon.canDelete === undefined || currentAddon.canDelete);
if (!loaded) canEdit = false;
Expand Down

0 comments on commit 3026ab5

Please sign in to comment.