Skip to content

Commit

Permalink
Start some easy clean up based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Heenawter committed Sep 28, 2023
1 parent fe6e862 commit 72f0c4d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ export const getPanelLayoutsAreEqual = (
];
for (const key of keys) {
if (key === undefined) continue;
if (!defaultDiffFunction(originalObj[key], newObj[key])) {
differences[key] = newObj[key];
}
if (!defaultDiffFunction(originalObj[key], newObj[key])) differences[key] = newObj[key];
}
return differences;
};
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/links/kibana.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "plugin",
"id": "@kbn/links-plugin",
"owner": "@elastic/kibana-presentation",
"description": "An dashboard panel for creating links to dashboards or external links.",
"description": "A dashboard panel for creating links to dashboards or external links.",
"plugin": {
"id": "links",
"server": true,
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/links/public/embeddable/links_embeddable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export class LinksEmbeddable
private subscriptions: Subscription = new Subscription();

// state management
/**
* TODO: Keep track of the necessary state without the redux embeddable tools; it's kind of overkill here.
* Related issue: https://github.com/elastic/kibana/issues/167577
*/
public select: LinksReduxEmbeddableTools['select'];
public getState: LinksReduxEmbeddableTools['getState'];
public dispatch: LinksReduxEmbeddableTools['dispatch'];
Expand Down
5 changes: 0 additions & 5 deletions src/plugins/links/public/embeddable/links_reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ import { LinksReduxState } from './types';
import { LinksAttributes } from '../../common/content_management';

export const linksReducers = {
/**
* TODO: Right now, we aren't using any reducers - but, I'm keeping this here as a draft
* just in case we need them later on. As a final cleanup, we could remove this if we never
* end up using reducers
*/
setLoading: (state: WritableDraft<LinksReduxState>, action: PayloadAction<boolean>) => {
state.output.loading = action.payload;
},
Expand Down

0 comments on commit 72f0c4d

Please sign in to comment.