Skip to content

Commit

Permalink
fix: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
amir78729 committed Jun 18, 2024
1 parent 9c04909 commit 1517d31
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/components/AddFieldModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ const AddFieldModal = () => {


const handleSubmit = (formData) => {
console.log('🐕 sag formData', formData); // TODO: REMOVE ME ⚠️

if (field) {
field.setSchema(formData);
dispatch({
Expand Down
1 change: 0 additions & 1 deletion src/components/SchemaPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const renderHeader = ({icon, schema, onDelete, name}: {
const [showEditModal, setShowEditModal] = useState<boolean>(false);
const {fields, dispatch} = useSchema();
const SelectedFieldClass = fields.find(field => field.id === getFieldId(schema))?.Class
console.log('🐕 sag selectedField', SelectedFieldClass); // TODO: REMOVE ME ⚠️

let field;
if (SelectedFieldClass) {
Expand Down
3 changes: 0 additions & 3 deletions src/fields/containers/ArrayField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ export class ArrayField extends JsonSchemaField {
if (schema.minItems) this.setMinItems(schema.minItems);
if (schema.prefixItems) this.setPrefixItems(schema.prefixItems);
if (schema.unevaluatedItems) this.setUnevaluatedItems(schema.unevaluatedItems);

console.log('🐕 sag this.items', this.items); // TODO: REMOVE ME ⚠️
console.log('🐕 sag this.itemsType', this.itemsType); // TODO: REMOVE ME ⚠️

}

Expand Down

0 comments on commit 1517d31

Please sign in to comment.