mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
7 lines
158 B
JavaScript
7 lines
158 B
JavaScript
export function activeFocusEntry(entries) {
|
|
if (entries.length === 0) {
|
|
return null
|
|
}
|
|
return entries.find((entry) => entry.editing) || entries[0]
|
|
}
|