@nine-lab/nine-mu 0.1.96 → 0.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nine-mu.js +13 -13
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +1 -1
package/package.json
CHANGED
|
@@ -150,7 +150,7 @@ export class NineChat extends HTMLElement {
|
|
|
150
150
|
const res = await api.post(`/nine-mu/source/readFile`, { path: this.#routesPath });
|
|
151
151
|
trace.log(res);
|
|
152
152
|
|
|
153
|
-
if (!
|
|
153
|
+
if (!res || !res?.contents) return;
|
|
154
154
|
|
|
155
155
|
const jsonRoutes = res?.contents ? JSON.parse(res?.contents) : {};
|
|
156
156
|
trace.log(jsonRoutes);
|