Skip to content

Commit

Permalink
chore: typofix Obejct -> Object in debuggerSelectors.tsx (#39008)
Browse files Browse the repository at this point in the history
## Description
Simple typofix

## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Updated internal naming conventions for error handling to improve
consistency and maintainability without altering the application's
behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
torcoste authored Feb 25, 2025
1 parent 53223f9 commit 9fbf6c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/client/src/selectors/debuggerSelectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ import { getDataTree } from "./dataTreeSelectors";
import type { CanvasDebuggerState } from "reducers/uiReducers/debuggerReducer";
import { selectCombinedPreviewMode } from "./gitModSelectors";

interface ErrorObejct {
interface ErrorObject {
[k: string]: Log;
}

export const getDebuggerErrors = (state: AppState) => state.ui.debugger.errors;
export const hideErrors = (state: AppState) => state.ui.debugger.hideErrors;
const emptyErrorObejct: ErrorObejct = {};
const emptyErrorObject: ErrorObject = {};

export const getFilteredErrors = createSelector(
getDebuggerErrors,
hideErrors,
getWidgets,
getDataTree,
(errors, hideErrors, canvasWidgets, dataTree: DataTree) => {
if (hideErrors) return emptyErrorObejct;
if (hideErrors) return emptyErrorObject;

if (isEmpty(errors)) return emptyErrorObejct;
if (isEmpty(errors)) return emptyErrorObject;

const alwaysShowEntities: Record<string, boolean> = {};

Expand Down

0 comments on commit 9fbf6c3

Please sign in to comment.