mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +00:00
fix populate
This commit is contained in:
parent
5d09be86e0
commit
8233e9d31c
@ -308,6 +308,9 @@ export default class BaseAPI<
|
||||
props: this.getDatabaseCommonInteractionProps(req),
|
||||
});
|
||||
|
||||
console.log("ITEM");
|
||||
console.log(item);
|
||||
|
||||
return Response.sendEntityResponse(req, res, item, this.entityType);
|
||||
}
|
||||
|
||||
|
@ -461,7 +461,7 @@ export default class ModelPermission {
|
||||
} {
|
||||
for (const key in populate) {
|
||||
if (typeof populate[key] === Typeof.Object) {
|
||||
(select as any)[key] = (populate as any)[key];
|
||||
(select as any)[key] = { ...(populate as any)[key], _id: true };
|
||||
|
||||
(populate as any)[key] = true;
|
||||
} else {
|
||||
|
@ -157,7 +157,7 @@ const DayUptimeGraph: FunctionComponent<ComponentProps> = (
|
||||
}
|
||||
|
||||
return (
|
||||
<Tooltip text={toolTipText || '100% Operational'}>
|
||||
<Tooltip key={dayNumber} text={toolTipText || '100% Operational'}>
|
||||
<div
|
||||
className="uptime-bar"
|
||||
style={{ backgroundColor: color.toString() }}
|
||||
|
@ -10,7 +10,7 @@ export interface ComponentProps {
|
||||
const Tooltip: FunctionComponent<ComponentProps> = (
|
||||
props: ComponentProps
|
||||
): ReactElement => {
|
||||
return <Tippy content={<span>{props.text}</span>}>{props.children}</Tippy>;
|
||||
return <Tippy key={Math.random()} content={<span>{props.text}</span>}>{props.children}</Tippy>;
|
||||
};
|
||||
|
||||
export default Tooltip;
|
||||
|
@ -8,7 +8,9 @@ const root: any = ReactDOM.createRoot(
|
||||
);
|
||||
|
||||
root.render(
|
||||
<BrowserRouter>
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
<React.StrictMode>
|
||||
<BrowserRouter>
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user