Refactor regex handling and improve null checks across various components
Updated regex patterns in episode parsing and metadata handling to use String.raw for better readability and maintainability. Enhanced null checks in BlockBuilder, MediaPanel, and ShowMetadataCard components to prevent potential runtime errors. Consolidated imports in UsersPanel for cleaner code structure.
This commit is contained in:
@@ -47,7 +47,7 @@ export function BlockBuilder({
|
||||
setOver(false)
|
||||
const item = readDragItem(event)
|
||||
// Блок из блоков собрать нельзя: коллекция хранит шоу, а не вложенные коллекции.
|
||||
if (!item || item.kind !== 'clip') return
|
||||
if (item?.kind !== 'clip') return
|
||||
setItems((current) => [...current, item])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user