Update input url if user changed the url in manage links dialog

This commit is contained in:
Ilango 2024-01-23 16:59:05 +05:30
parent 193e5c4640
commit 6395b121b4
2 changed files with 3 additions and 2 deletions

View File

@ -74,7 +74,7 @@ const ManageScrapedLinksDialog = ({ show, dialogProps, onCancel, onSave }) => {
}
const handleSaveLinks = () => {
onSave(selectedLinks)
onSave(url, selectedLinks)
}
const component = show ? (

View File

@ -102,8 +102,9 @@ const NodeInputHandler = ({ inputAnchor, inputParam, data, disabled = false, isA
setShowManageScrapedLinksDialog(true)
}
const onManageLinksDialogSave = (links) => {
const onManageLinksDialogSave = (url, links) => {
setShowManageScrapedLinksDialog(false)
data.inputs.url = url
data.inputs.selectedLinks = links
}