mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:09:05 +00:00
Replace all gorm .Scan() calls with .Find()
if the argument is a model. This ensures that the proper gorm hooks are called which was causing the full screen view on the Places page to crash. Also fixed a bug in Messages.js that caused a crash.
This commit is contained in:
@@ -54,7 +54,7 @@ const Messages = () => {
|
||||
const RefDiv = props => <div {...props} ref={x => x && ref(x)} />
|
||||
|
||||
switch (message.type) {
|
||||
case 'message':
|
||||
case 'Message':
|
||||
return props => (
|
||||
<Message
|
||||
as={RefDiv}
|
||||
@@ -66,7 +66,7 @@ const Messages = () => {
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
case 'progress':
|
||||
case 'Progress':
|
||||
return props => (
|
||||
<MessageProgress
|
||||
as={RefDiv}
|
||||
|
||||
Reference in New Issue
Block a user