mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-15 20:01:28 +00:00
improve
This commit is contained in:
committed by
Maintainer Bruno
parent
b83657cbd9
commit
b461de9aaf
@@ -2184,23 +2184,17 @@ export const collectionsSlice = createSlice({
|
||||
|
||||
if (type === 'post-response-script-execution') {
|
||||
const item = collection.runnerResult.items.findLast((i) => i.uid === request.uid);
|
||||
if (action.payload.errorMessage) {
|
||||
item.postResponseScriptErrorMessage = action.payload.errorMessage;
|
||||
}
|
||||
item.postResponseScriptErrorMessage = action.payload.errorMessage;
|
||||
}
|
||||
|
||||
if (type === 'test-script-execution') {
|
||||
const item = collection.runnerResult.items.findLast((i) => i.uid === request.uid);
|
||||
if (action.payload.errorMessage) {
|
||||
item.testScriptErrorMessage = action.payload.errorMessage;
|
||||
}
|
||||
item.testScriptErrorMessage = action.payload.errorMessage;
|
||||
}
|
||||
|
||||
if (type === 'pre-request-script-execution') {
|
||||
const item = collection.runnerResult.items.findLast((i) => i.uid === request.uid);
|
||||
if (action.payload.errorMessage) {
|
||||
item.preRequestScriptErrorMessage = action.payload.errorMessage;
|
||||
}
|
||||
item.preRequestScriptErrorMessage = action.payload.errorMessage;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user