Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed May 24, 2024
1 parent 74100d4 commit 48c3346
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ export function getLogStreamEmbeddableFactory(services: Services) {
type: LOG_STREAM_EMBEDDABLE,
deserializeState: (state) => state.rawState,
buildEmbeddable: async (state, buildApi) => {
const timeRange = initializeTimeRange(state);
const timeRangeContext = initializeTimeRange(state);
const { titlesApi, titleComparators, serializeTitles } = initializeTitles(state);

const api = buildApi(
{
...timeRange.api,
...timeRangeContext.api,
...titlesApi,
serializeState: () => {
return {
rawState: {
...timeRange.serialize(),
...timeRangeContext.serialize(),
...serializeTitles(),
},
};
},
},
{
...timeRange.comparators,
...timeRangeContext.comparators,
...titleComparators,
}
);
Expand All @@ -64,7 +64,7 @@ export function getLogStreamEmbeddableFactory(services: Services) {
setDarkMode(theme.darkMode);
});
return () => subscription.unsubscribe();
}, [services.coreStart.theme.theme$]);
}, []);

return !startTimestamp || !endTimestamp ? null : (
<CoreProviders
Expand Down

0 comments on commit 48c3346

Please sign in to comment.