Skip to content

Commit

Permalink
nit #209
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd committed Feb 22, 2025
1 parent 4b0c413 commit d16a5be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { inject, ref } from "vue";
import { inject, ref, type Component } from "vue";
import { useGettext } from "vue3-gettext";
import { useRouter } from "vue-router";
Expand All @@ -14,7 +14,7 @@ import type { FormSubmitEvent } from "@primevue/forms";
const props = defineProps<{
isEditorMaximized: boolean;
component: any;
component: Component;
graphSlug: string;
nodeGroupAlias: string;
resourceInstanceId: string | undefined;
Expand Down Expand Up @@ -71,6 +71,7 @@ async function save(e: FormSubmitEvent) {
);
}
// @ts-expect-error componentName is declared via defineOptions
forceSectionRefresh!(props.component.componentName);
} catch (error) {
console.error(error);
Expand Down
11 changes: 6 additions & 5 deletions arches_lingo/src/arches_lingo/pages/SchemePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { computed, markRaw, provide, ref } from "vue";
import { useGettext } from "vue3-gettext";
import { useRoute } from "vue-router";
import Splitter from "primevue/splitter";
import SplitterPanel from "primevue/splitterpanel";
Expand All @@ -22,20 +23,20 @@ import {
provide("openEditor", openEditor);
provide("forceSectionRefresh", forceSectionRefresh);
const route = useRoute();
const { $gettext } = useGettext();
const editorPanelKey = ref(0);
const editorTileId = ref();
const editorState = ref(CLOSED);
const selectedComponentDatum = ref();
import { useRoute } from "vue-router";
const route = useRoute();
const resourceInstanceId = computed(() => {
const resourceInstanceId = computed<string | undefined>(() => {
if (route.params.id !== NEW) {
return route.params.id;
return route.params.id as string;
}
return undefined;
});
const componentData = ref([
Expand Down

0 comments on commit d16a5be

Please sign in to comment.