File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
packages/webui/src/client/lib Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export function BreadCrumbTextInput({
8383
8484 const [ inputState , dispatch ] = useReducer (
8585 ( state : InputState , action : ReducerActions ) => {
86- let newState = {
86+ const newState = {
8787 ...state ,
8888 }
8989 switch ( action . type ) {
@@ -224,7 +224,7 @@ export function BreadCrumbTextInput({
224224 dispatch ( {
225225 type : 'focus' ,
226226 index : index - 1 ,
227- position : 'end'
227+ position : 'end' ,
228228 } )
229229 event . preventDefault ( )
230230 delete event . currentTarget . dataset [ 'backspace' ]
@@ -235,7 +235,7 @@ export function BreadCrumbTextInput({
235235 position : 'begin' ,
236236 } )
237237 event . preventDefault ( )
238- delete event . currentTarget . dataset [ 'backspace' ]
238+ delete event . currentTarget . dataset [ 'backspace' ]
239239 } else {
240240 delete event . currentTarget . dataset [ 'backspace' ]
241241 }
Original file line number Diff line number Diff line change @@ -434,9 +434,7 @@ const Base64ImagePickerWithOverrides = ({ commonAttrs }: FormComponentProps) =>
434434const BreadCrumbsFormWithOverrides = ( { commonAttrs } : Readonly < FormComponentProps > ) => {
435435 return (
436436 < LabelAndOverrides { ...commonAttrs } >
437- { ( value , handleUpdate ) => (
438- < BreadCrumbTextInput value = { value || [ ] } handleUpdate = { handleUpdate } />
439- ) }
437+ { ( value , handleUpdate ) => < BreadCrumbTextInput value = { value || [ ] } handleUpdate = { handleUpdate } /> }
440438 </ LabelAndOverrides >
441439 )
442- }
440+ }
Original file line number Diff line number Diff line change @@ -272,8 +272,8 @@ export function useRundownViewEventBusListener<TEvent extends RundownViewEvents>
272272 } , [ name , cb ] )
273273}
274274
275- export function getAllAncestors ( el : HTMLElement ) {
276- const ancestors = [ ]
275+ export function getAllAncestors ( el : HTMLElement ) : HTMLElement [ ] {
276+ const ancestors : HTMLElement [ ] = [ ]
277277 let currentElement : HTMLElement | null = el
278278
279279 while ( currentElement ) {
You can’t perform that action at this time.
0 commit comments