Set instance variables on webview load

This commit is contained in:
Koen Vlaswinkel
2023-10-10 16:55:55 +02:00
parent 77bb9780ec
commit 073440914d

View File

@@ -71,6 +71,9 @@ export class MethodModelingViewProvider extends AbstractWebviewViewProvider<
if (this.modelingStore.hasStateForActiveDb()) {
const selectedMethod = this.modelingStore.getSelectedMethodDetails();
if (selectedMethod) {
this.databaseItem = selectedMethod.databaseItem;
this.method = selectedMethod.method;
await this.postMessage({
t: "setSelectedMethod",
method: selectedMethod.method,