diff --git a/ui/src/utils/getInitialState.js b/ui/src/utils/getInitialState.js deleted file mode 100644 index 73bd26771c..0000000000 --- a/ui/src/utils/getInitialState.js +++ /dev/null @@ -1,25 +0,0 @@ -export default function getInitialState(localStorage, hosts, alerts) { - const existingTimeSettingsString = localStorage.getItem('time'); - - - const h = {}; - hosts.forEach((host) => { - h[host] = {url: host}; - }); - - const time = Object.assign({ - bounds: { - lower: 'now() - 15m', - upper: 'now()', - }, - groupByInterval: 60, - }, JSON.parse(existingTimeSettingsString || '{}')); - - // Why are we getting hosts for all pages? - // I've copied alerts here in the same way. - return { - hosts: h, - alerts: alerts, - time, - }; -}