From 8bfc28607fe4c18c671c7b74c302ca02ea61dc28 Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Fri, 27 Aug 2021 22:08:33 -0700 Subject: [PATCH] [twisty] Fix up the editor's connection to the setup prop. --- src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditorV2.ts | 2 +- src/sites/alpha.twizzle.net/edit/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditorV2.ts b/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditorV2.ts index f5a95d3df..fb73cc63a 100644 --- a/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditorV2.ts +++ b/src/cubing/twisty/views/TwistyAlgEditor/TwistyAlgEditorV2.ts @@ -271,7 +271,7 @@ export class TwistyAlgEditorV2 extends ManagedCustomElement { return; } (async () => { - this.algString = (await twistyPlayer.model.algProp.get()).alg.toString(); + this.algString = (await this.#algProp!.get()).alg.toString(); })(); if (this.#twistyPlayerProp === "algProp") { diff --git a/src/sites/alpha.twizzle.net/edit/index.html b/src/sites/alpha.twizzle.net/edit/index.html index 5f2a63678..ea4588840 100644 --- a/src/sites/alpha.twizzle.net/edit/index.html +++ b/src/sites/alpha.twizzle.net/edit/index.html @@ -37,7 +37,7 @@