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 17, 2023
1 parent d352222 commit f5fed07
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 f5fed07

Please sign in to comment.