removed lodash and axios

This commit is contained in:
2026-05-07 22:50:02 +03:00
parent daa4b268a6
commit a04cdd753d
24 changed files with 2191 additions and 4844 deletions
@@ -1,6 +1,6 @@
<script>
import { createEventDispatcher, getContext } from "svelte";
import { debounce } from "lodash";
import { apiGet, debounce } from "../../../helpers";
const channel = getContext("channel");
const dispatch = createEventDispatcher();
@@ -12,17 +12,16 @@
$: searchOptions = [];
const updateResults = debounce((e) => {
axios
.get(channel.lucentUrl + "/records/suggestions", {
params: {
schema: field.collections[0],
field: "search",
value: search,
ui: "search",
},
})
apiGet(channel.lucentUrl + "/records/suggestions", {
params: {
schema: field.collections[0],
field: "search",
value: search,
ui: "search",
},
})
.then((response) => {
searchOptions = response.data;
searchOptions = response;
})
.catch((error) => {
searchOptions = [];