Skip to content

Commit

Permalink
chore(properties-panel): disable specific eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Kiefer committed Oct 20, 2023
1 parent 86376df commit ec51371
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const PropertiesPanelHeaderProvider = {

// @Note: We know that we are inside the properties panel context,
// so we can savely use the hook here.
// eslint-disable-next-line
// eslint-disable-next-line react-hooks/rules-of-hooks
const fieldDefinition = useService('formFields').get(type).config;

const Icon = fieldDefinition.icon || iconsByType(type);
Expand All @@ -65,7 +65,7 @@ export const PropertiesPanelHeaderProvider = {

// @Note: We know that we are inside the properties panel context,
// so we can savely use the hook here.
// eslint-disable-next-line
// eslint-disable-next-line react-hooks/rules-of-hooks
const fieldDefinition = useService('formFields').get(type).config;

return fieldDefinition.label || type;
Expand Down

0 comments on commit ec51371

Please sign in to comment.