Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Sep 19, 2024
1 parent 66a813a commit 30e4b72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,17 @@ function TestNotificationConfigEdit() {
}, [testNotificationConfigEditData]);

const handleMenuItems = (res) => {
if (!res) {
} else {
if (res) {
setTestNotificationConfigEditData(res);
setLoading(false);
}
setLoading(false);
};

const handleTestNamesList = (res) => {
if (!res) {
} else {
if (res) {
setTestNamesList(res);
setLoading(false);
}
setLoading(false);
};

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,17 @@ function TestNotificationConfigMenu() {
const [testNamesMap, setTestNamesMap] = useState({});

const handleMenuItems = (res) => {
if (!res) {
} else {
setLoading(false);
if (res) {
setTestNotificationConfigMenuData(res);
}
setLoading(false);
};

const handleTestNamesList = (res) => {
if (!res) {
} else {
setLoading(false);
if (res) {
setTestNamesList(res);
}
setLoading(false);
};

useEffect(() => {
Expand Down

0 comments on commit 30e4b72

Please sign in to comment.