chore: enhance Makefile with version bump commands and update query enabling logic in edit node modals

This commit is contained in:
kastov 2025-07-29 19:48:06 +03:00
parent 19a81bf8e6
commit 7fcd8db161
No known key found for this signature in database
GPG key ID: 1B27BE29057F4C90
3 changed files with 19 additions and 3 deletions

View file

@ -1,4 +1,4 @@
.PHONY: download-monaco-deps clean
.PHONY: download-monaco-deps clean bump-patch bump-minor bump-major update-deps
MONACO_FILES = \
public/wasm_exec.js \
@ -23,3 +23,15 @@ public/main.wasm:
clean:
rm -f $(MONACO_FILES)
bump-patch:
npm version patch
npm install
bump-minor:
npm version minor
npm install
bump-major:
npm version major
npm install

View file

@ -44,12 +44,14 @@ export const EditNodeByUuidModalWidget = () => {
const { data: pubKey } = useGetPubKey()
const isQueryEnabled = isOpen && !form.isTouched()
const { data: fetchedNode, isLoading } = useGetNode({
route: {
uuid: nodeUuid?.nodeUuid ?? ''
},
rQueryParams: {
enabled: isOpen
enabled: isQueryEnabled
}
})

View file

@ -43,12 +43,14 @@ export const EditNodeModalConnectorWidget = () => {
const { data: pubKey } = useGetPubKey()
const isQueryEnabled = !!node?.uuid && !form.isTouched()
const { data: fetchedNode } = useGetNode({
route: {
uuid: node?.uuid ?? ''
},
rQueryParams: {
enabled: !!node?.uuid
enabled: isQueryEnabled
}
})