show the path as the server returns it

This commit is contained in:
Mads Rasmussen
2023-12-19 14:42:37 +01:00
parent 2563c5ddf1
commit c86a61fe6f

View File

@@ -47,11 +47,7 @@ export class UmbStylesheetWorkspaceEditorElement extends UmbLitElement {
#observeNameAndPath() {
if (!this.#workspaceContext) return;
this.observe(
this.#workspaceContext.path,
(path) => (this._path = path?.replace(/\\/g, '/')),
'_observeStylesheetPath',
);
this.observe(this.#workspaceContext.path, (path) => (this._path = path), '_observeStylesheetPath');
this.observe(this.#workspaceContext.name, (name) => (this._name = name), '_observeStylesheetName');
}