mirror of
https://github.com/hexastack/hexabot
synced 2025-04-01 08:15:07 +00:00
fix: lint
This commit is contained in:
parent
34c299337d
commit
969a60d6b7
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright © 2024 Hexastack. All rights reserved.
|
||||
* Copyright © 2025 Hexastack. All rights reserved.
|
||||
*
|
||||
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
|
||||
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
|
||||
@ -16,8 +16,8 @@ import { useFind } from "@/hooks/crud/useFind";
|
||||
import { EntityType } from "@/services/types";
|
||||
import { IBlockAttributes } from "@/types/block.types";
|
||||
import { StdPluginMessage } from "@/types/message.types";
|
||||
|
||||
import { getNamespace } from "@/utils/string";
|
||||
|
||||
import { useBlock } from "./BlockFormProvider";
|
||||
|
||||
const PluginMessageForm = () => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright © 2024 Hexastack. All rights reserved.
|
||||
* Copyright © 2025 Hexastack. All rights reserved.
|
||||
*
|
||||
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
|
||||
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
|
||||
@ -22,9 +22,9 @@ import { useTranslate } from "@/hooks/useTranslate";
|
||||
import { theme } from "@/layout/themes/theme";
|
||||
import { EntityType } from "@/services/types";
|
||||
import { IBlock, PayloadPattern } from "@/types/block.types";
|
||||
|
||||
import { PayloadType } from "@/types/message.types";
|
||||
import { getNamespace } from "@/utils/string";
|
||||
|
||||
import { useBlock } from "../../BlockFormProvider";
|
||||
|
||||
type PayloadOption = PayloadPattern & {
|
||||
@ -76,7 +76,6 @@ export const OutcomeInput = ({ defaultValue, onChange }: OutcomeInputProps) => {
|
||||
),
|
||||
[block?.previousBlocks, getBlockFromCache],
|
||||
);
|
||||
|
||||
const isOptionsReady =
|
||||
!defaultValue || options.find((o) => o.value === defaultValue.value);
|
||||
|
||||
|
@ -256,7 +256,7 @@ const VisualEditorProvider: React.FC<VisualEditorContextProps> = ({
|
||||
const createNode = (payload: any) => {
|
||||
payload.position = payload.position || getCentroid();
|
||||
payload.category = payload.category || selectedCategoryId;
|
||||
console.log("====", payload);
|
||||
|
||||
return createBlock(payload, {
|
||||
onSuccess({ id }) {
|
||||
addNode({
|
||||
|
Loading…
Reference in New Issue
Block a user