diff options
author | 2023-10-05 16:06:19 +0200 | |
---|---|---|
committer | 2023-10-05 16:06:19 +0200 | |
commit | d173fcdfa3ad6f6aee721c8553f25f4db38fa302 (patch) | |
tree | 722cdaf93e090edcf83769ae763731008daf5fd3 /web/source/settings/lib/query/lib.js | |
parent | updates markdown parsing to reduce allocations in the same way as the plain t... (diff) | |
download | gotosocial-d173fcdfa3ad6f6aee721c8553f25f4db38fa302.tar.xz |
[chore] Convert some settings / admin panel JS to TypeScript (#2247)
* initial conversion of STUFF to typescript
* more stuff
* update babel deps, include commonjs transform
* update bundler & eslint configuration
* eslint --fix
* upgrade deps
* update docs, build stuff, peripheral stuff
---------
Co-authored-by: f0x <f0x@cthu.lu>
Diffstat (limited to 'web/source/settings/lib/query/lib.js')
-rw-r--r-- | web/source/settings/lib/query/lib.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/source/settings/lib/query/lib.js b/web/source/settings/lib/query/lib.js index 56ce05478..1025ca3a7 100644 --- a/web/source/settings/lib/query/lib.js +++ b/web/source/settings/lib/query/lib.js @@ -17,10 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -"use strict"; - const syncpipe = require("syncpipe"); -const base = require("./base"); +const { gtsApi } = require("./gts-api"); module.exports = { unwrapRes(res) { @@ -70,7 +68,7 @@ function makeCacheMutation(action) { return { onQueryStarted: (_, { dispatch, queryFulfilled }) => { queryFulfilled.then(({ data: newData }) => { - dispatch(base.util.updateQueryData(queryName, arg, (draft) => { + dispatch(gtsApi.util.updateQueryData(queryName, arg, (draft) => { if (findKey != undefined) { key = findKey(draft, newData); } |