refactor(server): improve URL change detection and context handling
- Renamed `ensureDataObject` to `passContext` and added `mergeData` for better context management. - Updated `detectUrlChanges` to utilize the new context handling functions, improving data merging and response handling. - Enhanced evaluation of JSONata expressions with a new `evalCtx` function to streamline context passing. - Adjusted test assertions to reflect changes in output structure from `data` to `output`. Co-authored-by: Nasyarobby Putra <nasyarobby@gmail.com>
This commit is contained in:
@@ -136,7 +136,11 @@ export function NewWorkflowPresetDialog({ onChoose, onCancel }) {
|
||||
type="checkbox"
|
||||
className="checkbox checkbox-sm"
|
||||
checked={dontAsk}
|
||||
onChange={(e) => setDontAsk(e.target.checked)}
|
||||
onChange={(e) => {
|
||||
const checked = e.target.checked;
|
||||
setDontAsk(checked);
|
||||
if (checked) setMode("empty");
|
||||
}}
|
||||
/>
|
||||
<span className="label-text">Don't ask this. Always create empty workflow.</span>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user