Skip to content

Conversation

myarmolinsky
Copy link
Contributor

@myarmolinsky myarmolinsky commented Sep 23, 2025

Change-type: patch
@flowzone-app
Copy link
Contributor

flowzone-app bot commented Sep 23, 2025

Website deployed to CF Pages, 👀 preview link https://2da9b555.balena-design-system.pages.dev

@myarmolinsky myarmolinsky force-pushed the drop-some-lodash-for-native-alternatives branch from 08973d1 to 2262746 Compare September 23, 2025 16:11
@myarmolinsky myarmolinsky requested a review from a team September 23, 2025 16:22
const InstructionsItem = ({ node, index }: InstructionsItemProps) => {
const hasChildren = has(node, 'children');
const hasChildren =
node != null && Object.hasOwnProperty.call(node, 'children');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to just use Object.hasOwn as it is supported by all browsers we support ATM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not supported by our current module


const getKeyLabel = (schema: JSONSchema) => {
const s = find(schema.properties, { description: 'key' }) as JSONSchema;
const s = findValueByDescription(schema.properties, 'key');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove these 2 find methods and reuse

export const findInObject = (obj: Record<string, any>, key: string): any => {

Copy link
Contributor Author

@myarmolinsky myarmolinsky Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please explain why you think so? They do not appear alike to me

@myarmolinsky myarmolinsky force-pushed the drop-some-lodash-for-native-alternatives branch from 2262746 to 2a30881 Compare September 24, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants