🔥 Clean up unused code

This commit is contained in:
Philipp Stracker 2024-11-20 17:20:48 +01:00
parent 80bbf51220
commit 8f12e978f3
No known key found for this signature in database

View file

@ -7,19 +7,13 @@
* @file
*/
import { select } from '@wordpress/data';
import apiFetch from '@wordpress/api-fetch';
import {
STORE_NAME,
REST_PERSIST_PATH,
REST_MANUAL_CONNECTION_PATH,
} from './constants';
import { REST_PERSIST_PATH, REST_MANUAL_CONNECTION_PATH } from './constants';
import ACTION_TYPES from './action-types';
export const controls = {
async [ ACTION_TYPES.DO_PERSIST_DATA ]( { data } ) {
console.log( 'Do PERSIST: ', data );
try {
await apiFetch( {
path: REST_PERSIST_PATH,