mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
init streaming server settings fixed
This commit is contained in:
parent
a89e04192f
commit
42f461201d
1 changed files with 4 additions and 5 deletions
|
|
@ -2,13 +2,12 @@ const React = require('react');
|
|||
const { useServices } = require('stremio/services');
|
||||
const { useModelState } = require('stremio/common');
|
||||
|
||||
const initStreamingServer = () => ({
|
||||
selected: null,
|
||||
settings: null
|
||||
});
|
||||
|
||||
const useStreamingServer = () => {
|
||||
const { core } = useServices();
|
||||
const initStreamingServer = React.useMemo(() => {
|
||||
const streamingServer = core.getState('streaming_server');
|
||||
return streamingServer;
|
||||
}, []);
|
||||
const loadStreamingServerAction = React.useMemo(() => {
|
||||
const streamingServer = core.getState('streaming_server');
|
||||
if (streamingServer.selected === null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue