Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
3ll3d00d committed May 1, 2021
1 parent dca15c8 commit d958cb6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 4 additions & 0 deletions ui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ const App = () => {
pushData(setEntries, ezbeq.load);
}, []);

useEffect(() => {
pushData(setDevice, ezbeq.getDeviceConfig);
}, []);

useEffect(() => {
const txtMatch = e => {
const matchOn = txtFilter.toLowerCase()
Expand Down
5 changes: 0 additions & 5 deletions ui/src/components/Devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import PublishIcon from '@material-ui/icons/Publish';
import PlayArrowIcon from "@material-ui/icons/PlayArrow";
import ClearIcon from "@material-ui/icons/Clear";
import ezbeq from "../services/ezbeq";
import {pushData} from "../services/util";
import Gain from "./Gain";

const useStyles = makeStyles((theme) => ({
Expand Down Expand Up @@ -61,10 +60,6 @@ const Devices = ({selectedEntryId, selectedSlotId, useWide, setSelectedSlotId, d
const [currentGains, setCurrentGains] = useState(defaultGain);
const [deviceGains, setDeviceGains] = useState({});

useEffect(() => {
pushData(setDevice, ezbeq.getDeviceConfig);
}, []);

useEffect(() => {
if ("slots" in device && device.slots.length === 1) {
setDims([75, 90, '80px']);
Expand Down
6 changes: 3 additions & 3 deletions ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3184,9 +3184,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001125, caniuse-lite@^1.0.30001157:
version "1.0.30001159"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001159.tgz#bebde28f893fa9594dadcaa7d6b8e2aa0299df20"
integrity sha512-w9Ph56jOsS8RL20K9cLND3u/+5WASWdhC/PPrf+V3/HsM3uHOavWOR1Xzakbv4Puo/srmPHudkmCRWM7Aq+/UA==
version "1.0.30001219"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001219.tgz"
integrity sha512-c0yixVG4v9KBc/tQ2rlbB3A/bgBFRvl8h8M4IeUbqCca4gsiCfvtaheUssbnux/Mb66Vjz7x8yYjDgYcNQOhyQ==

capture-exit@^2.0.0:
version "2.0.0"
Expand Down

0 comments on commit d958cb6

Please sign in to comment.