Skip to content

Commit

Permalink
feat: use dummy data for topology dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriiMelnikOnix committed Apr 4, 2022
1 parent 45d1b31 commit 9e47d53
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/pages/Examples/topology-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ export const TypologyDropdownDemo = () => {
const searchTopology = useCallback(
(name) =>
new Promise((resolve, reject) => {
getTopology({ name })
.then(({ data }) => resolve(data))
.catch((e) => {
resolve(topologies); // todo remove this if getTopology works
});
resolve(topologies); // todo remove this if getTopology works
// getTopology({ name }).then(({ data }) => resolve(data));
}),
[]
);
Expand Down

0 comments on commit 9e47d53

Please sign in to comment.