Skip to content

Commit 574aef2

Browse files
committed
Rename ref
1 parent f3b15f2 commit 574aef2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/stories-block/src/block/components/storiesInspectorControls.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const StoriesInspectorControls = (props) => {
9595
showFilters = true,
9696
} = props;
9797

98-
const firstUpdate = useRef(true);
98+
const firstUpdateRef = useRef(true);
9999

100100
const taxonomies = useSelect((select) => {
101101
const { getTaxonomies } = select(coreStore);
@@ -134,8 +134,8 @@ const StoriesInspectorControls = (props) => {
134134

135135
useEffect(() => {
136136
// We want to update the fieldState for any viewType change post first render.
137-
if (firstUpdate.current) {
138-
firstUpdate.current = false;
137+
if (firstUpdateRef.current) {
138+
firstUpdateRef.current = false;
139139
return;
140140
}
141141

0 commit comments

Comments
 (0)