mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 21:25:24 +03:00
fix optional
This commit is contained in:
parent
08b3574bb9
commit
7d70e9de40
@ -43,7 +43,7 @@ export function StatusBarMessagesProvider({
|
||||
const messages = useMemo(() => messagesState, [messagesState]);
|
||||
|
||||
const addMessage = useCallback(
|
||||
(key: string, message: string, color: string, messageId?: string) => {
|
||||
(key: string, message: string, color?: string, messageId?: string) => {
|
||||
const id = messageId || Date.now().toString();
|
||||
const msgColor = color || "text-danger";
|
||||
setMessagesState((prevMessages) => ({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user