Skip to content

Commit

Permalink
fix asset loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
theBstar committed Aug 23, 2024
1 parent c3bd56e commit c0246d5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-dist/ui-gallery.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -42388,7 +42388,7 @@ const bEe = () => {
};
function xEe() {
var t;
const e = ((t = window == null ? void 0 : window.location) == null ? void 0 : t.hostname) === "localhost" ? "" : `${window.location}`;
const e = ((t = window == null ? void 0 : window.location) == null ? void 0 : t.hostname) === "localhost" ? "" : `${location.href.replace(location.search, "")}`;
return /* @__PURE__ */ q.jsxs(ft, { style: { width: "90%" }, align: "flex-start", gap: 8, children: [
/* @__PURE__ */ q.jsx(
ip,
Expand Down Expand Up @@ -94332,7 +94332,7 @@ function r9e({
customMessageActionCardItem: a
}) {
var f, p;
const s = ((f = window == null ? void 0 : window.location) == null ? void 0 : f.hostname) === "localhost" ? "" : `${window.location}`, l = (p = t[e]) == null ? void 0 : p.content, u = (t == null ? void 0 : t.length) - 1 === e && r, d = o == null ? void 0 : o.component, h = () => {
const s = ((f = window == null ? void 0 : window.location) == null ? void 0 : f.hostname) === "localhost" ? "" : `${location.href.replace(location.search, "")}`, l = (p = t[e]) == null ? void 0 : p.content, u = (t == null ? void 0 : t.length) - 1 === e && r, d = o == null ? void 0 : o.component, h = () => {
var y, C;
const g = l.type || ((y = l == null ? void 0 : l.query_response) == null ? void 0 : y.type), v = (l == null ? void 0 : l.data) || ((C = l == null ? void 0 : l.query_response) == null ? void 0 : C.data), m = l == null ? void 0 : l.query_configuration;
switch (g) {
Expand Down
4 changes: 2 additions & 2 deletions package-dist/ui-gallery.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/AILoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Flex, Image, Skeleton } from 'antd';

export default function AILoader() {
const logoLink =
window?.location?.hostname === 'localhost' ? '' : `${window.location}`;
window?.location?.hostname === 'localhost' ? '' : `${location.href.replace(location.search, '')}`;
return (
<Flex style={{ width: '90%' }} align="flex-start" gap={8}>
<Image
Expand Down
2 changes: 1 addition & 1 deletion src/components/AIMessageComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function AIMessageComponents<T extends BaseMessage>({
customMessageActionCardItem,
}: AIMessageComponentsProps<T>) {
const logoLink =
window?.location?.hostname === 'localhost' ? '' : `${window.location}`;
window?.location?.hostname === 'localhost' ? '' : `${location.href.replace(location.search, '')}`;
const content = messages[index]?.content;
const isLastMessage = messages?.length - 1 === index;
const shouldShowActionCardItems = isLastMessage && showMessageActionCard;
Expand Down

0 comments on commit c0246d5

Please sign in to comment.