Skip to content

Commit baa9abd

Browse files
committed
Fix wheres
1 parent 7e2e533 commit baa9abd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

resources/assets/js/components/edit-block/edit-block.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import vmResponseViewer from './response-viewer/response-viewer.vue'
1313
1414
import {scheduleRequest, setRequestInfo, setResponse} from '../../vuex/actions.js'
15-
15+
import RandExp from 'randexp'
1616
import requestEditorData from './request-editor/request-editor-data.js'
1717
1818
export default {
@@ -37,8 +37,8 @@
3737
url,
3838
data: request.body,
3939
headers: request.headers,
40+
wheres: request.wheres,
4041
}
41-
return request
4242
},
4343
// Ask laravel what route are we dealing with, if any.
4444
getRequestInfo () {
@@ -50,6 +50,8 @@
5050
5151
// Modifies path if wheres are declared in request.
5252
// Otherwise, we'll send to unmodified path.
53+
54+
console.log(request.wheres)
5355
let path = request.url
5456
if(request.wheres){
5557
let wheres = request.wheres

resources/assets/js/components/routes/route.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
} from '../../vuex/actions.js'
2626
import vmMethodButton from '../ligth-components/method-button.vue'
2727
import _ from 'lodash'
28-
import RandExp from 'randexp'
2928
3029
export default {
3130
components: {

0 commit comments

Comments
 (0)