feat: use selector instead of value for key-value pair

This commit is contained in:
karishmas6
2024-07-31 05:01:22 +05:30
parent 1872c3cc50
commit 25042d4eeb

View File

@@ -74,8 +74,8 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => {
const createSettingsObject = useCallback(() => {
const settings: Record<string, string> = {};
browserSteps.forEach(step => {
if (step.label && step.value) {
settings[step.label] = step.value;
if (step.label && step.selector) {
settings[step.label] = step.selector;
}
});
console.log(`settings from getText:`, settings);