Skip to content

Commit

Permalink
fix nodes type for MenuTabEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
capital-G committed Oct 3, 2023
1 parent 7273d6b commit 5de83f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions caster-editor/src/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ import MenuTab from "./MenuTabHeader.vue";
import MenuTabEdit from "./MenuTabEdit.vue";
import MenuTabPlay from "./MenuTabPlay.vue";
import DialogExitGraph from "./DialogExitGraph.vue";
import type { GraphEdit } from "./MenuTabEdit.vue";
export type GraphMenu = Pick<Graph, "name" | "uuid" | "slugName"> & {
nodes: Array<any>;
};
export type GraphMenu = Pick<Graph, "name" | "uuid" | "slugName"> & GraphEdit;
// Props
defineProps<{
Expand Down
6 changes: 4 additions & 2 deletions caster-editor/src/components/MenuTabEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@
</template>

<script setup lang="ts">
import type { Graph } from "@/graphql";
import type { Graph, Node } from "@/graphql";
import { useDeleteEdgeMutation, useDeleteNodeMutation } from "@/graphql";
import { useInterfaceStore } from "@/stores/InterfaceStore";
import { ElMessage } from "element-plus";
import { storeToRefs } from "pinia";
import { ref, type Ref } from "vue";
import DialogAddNode from "./DialogAddNode.vue";
export type GraphEdit = Pick<Graph, "uuid" | "nodes">;
export type GraphEdit = Pick<Graph, "uuid"> & {
nodes: Pick<Node, "uuid" | "isEntryNode">[];
};
const props = defineProps<{
graph: GraphEdit;
Expand Down

0 comments on commit 5de83f0

Please sign in to comment.