Describe the bug:
When spaces are disabled, navigating to the detections page will throw errors.
Steps to reproduce:
- Disable spaces:
xpack.spaces.enabled: false in kibana.yml
- Navigate to the detections page
- Observe toaster errors, network errors, and
Expected behavior:
If spaces are disabled, detections references the index specified in xpack.siem.signalsIndex
Screenshots (if relevant):

Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
This was discovered as part of a refactor: 00122ec
Describe the bug:
When spaces are disabled, navigating to the detections page will throw errors.
Steps to reproduce:
xpack.spaces.enabled: falsein kibana.ymlExpected behavior:
If spaces are disabled, detections references the index specified in
xpack.siem.signalsIndexScreenshots (if relevant):

Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
This was discovered as part of a refactor: 00122ec